mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
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 :) client/mysqlslap.c: rename extra/comp_err.c: rename include/my_sys.h: replace mysys/mf_tempdir.c: replace mysys/my_malloc.c: replace mysys/safemalloc.c: replace sql/ha_federated.cc: replace sql/log_event.cc: replace sql/set_var.cc: replace sql/set_var.h: replace storage/myisam/ft_stopwords.c: replace
This commit is contained in:
parent
58de75fae8
commit
456524c060
11 changed files with 17 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue