Commit f4063ca8 authored by Thomas Heller's avatar Thomas Heller

Fix compiler warning.

parent ddb84d7c
......@@ -99,7 +99,7 @@ EXPORT(char *) my_strdup(char *src)
#ifdef HAVE_WCHAR_H
EXPORT(wchar_t *) my_wcsdup(wchar_t *src)
{
int len = wcslen(src);
size_t len = wcslen(src);
wchar_t *ptr = malloc((len + 1) * sizeof(wchar_t));
if (ptr == NULL)
return NULL;
......
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