Commit ef0a43cc authored by unknown's avatar unknown

Fixing the prototype for my_strndup() to compile on Windows.


mysys/my_malloc.c:
  Changing prototype for my_strndup().
server-tools/instance-manager/parse.h:
  Changing prototype for my_strndup().
parent 91f559d9
......@@ -83,7 +83,7 @@ char *my_strdup(const char *from, myf my_flags)
}
char *my_strndup(const byte *from, uint length, myf my_flags)
char *my_strndup(const char *from, uint length, myf my_flags)
{
gptr ptr;
if ((ptr=my_malloc(length+1,my_flags)) != 0)
......
......@@ -69,7 +69,7 @@ class Named_value
inline char *Named_value::alloc_str(const LEX_STRING *str)
{
return my_strndup((const byte *) str->str, str->length, MYF(0));
return my_strndup(str->str, str->length, MYF(0));
}
inline char *Named_value::alloc_str(const char *str)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment