diff options
author | brian@zim.tangent.org <> | 2006-01-25 19:54:42 -0800 |
---|---|---|
committer | brian@zim.tangent.org <> | 2006-01-25 19:54:42 -0800 |
commit | 570bffe8c70384840884f39e6c4e7a91a769a2ed (patch) | |
tree | 3da670fea2b41862a7aafcd0b78759610f62319b /mysys/mf_tempdir.c | |
parent | 425553e066e41ef3ebb6afa42d247682453a75d3 (diff) | |
download | mariadb-git-570bffe8c70384840884f39e6c4e7a91a769a2ed.tar.gz |
Rename of my_strdup_with_lenght to match the more common "strndup" method. Soo its now my_strndup().
my_stat() gettinng the correct parameter list may be next :)
Diffstat (limited to 'mysys/mf_tempdir.c')
-rw-r--r-- | mysys/mf_tempdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/mf_tempdir.c b/mysys/mf_tempdir.c index 0a3d41efdc5..e79980ab931 100644 --- a/mysys/mf_tempdir.c +++ b/mysys/mf_tempdir.c @@ -53,7 +53,7 @@ my_bool init_tmpdir(MY_TMPDIR *tmpdir, const char *pathlist) end=strcend(pathlist, DELIM); strmake(buff, pathlist, (uint) (end-pathlist)); length= cleanup_dirname(buff, buff); - if (!(copy= my_strdup_with_length(buff, length, MYF(MY_WME))) || + if (!(copy= my_strndup(buff, length, MYF(MY_WME))) || insert_dynamic(&t_arr, (gptr) ©)) DBUG_RETURN(TRUE); pathlist=end+1; |