summaryrefslogtreecommitdiff
path: root/client/mysqlslap.c
diff options
context:
space:
mode:
authorunknown <brian@zim.tangent.org>2006-01-25 19:54:42 -0800
committerunknown <brian@zim.tangent.org>2006-01-25 19:54:42 -0800
commit456524c0608c0fdbf61c585b2bd5dea57e861ef2 (patch)
tree3da670fea2b41862a7aafcd0b78759610f62319b /client/mysqlslap.c
parent58de75fae8bcfebea7549fa3eb909ca6fe8cb090 (diff)
downloadmariadb-git-456524c0608c0fdbf61c585b2bd5dea57e861ef2.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 :) 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
Diffstat (limited to 'client/mysqlslap.c')
-rw-r--r--client/mysqlslap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqlslap.c b/client/mysqlslap.c
index c993b93e608..be034da0c8c 100644
--- a/client/mysqlslap.c
+++ b/client/mysqlslap.c
@@ -1184,7 +1184,7 @@ parse_delimiter(const char *script, statement **stmt, char delm)
tmp= tmp->next)
{
count++;
- tmp->string= my_strdup_with_length(ptr, (size_t)(retstr - ptr), MYF(MY_FAE));
+ tmp->string= my_strndup(ptr, (size_t)(retstr - ptr), MYF(MY_FAE));
tmp->length= (size_t)(retstr - ptr);
DBUG_PRINT("info", (" Creating : %.*s\n", (uint)tmp->length, tmp->string));
ptr+= retstr - ptr + 1;
@@ -1195,7 +1195,7 @@ parse_delimiter(const char *script, statement **stmt, char delm)
if (ptr != script+length)
{
- tmp->string= my_strdup_with_length(ptr, (size_t)((script + length) - ptr),
+ tmp->string= my_strndup(ptr, (size_t)((script + length) - ptr),
MYF(MY_FAE));
tmp->length= (size_t)((script + length) - ptr);
DBUG_PRINT("info", (" Creating : %.*s\n", (uint)tmp->length, tmp->string));