Commit b6384f46 authored by mats@romeo.(none)'s avatar mats@romeo.(none)

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

parent c18b7d19
......@@ -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