fix typos in compatibility function

This commit is contained in:
Georg Sauthoff 2016-08-26 23:00:14 +02:00
parent 391eb656fe
commit d7fa22c88f

View file

@ -9,8 +9,8 @@
wchar_t * wcsdup(const wchar_t *s) wchar_t * wcsdup(const wchar_t *s)
{ {
size_t n = wcslen(s) + 1; size_t n = wcslen(s) + 1;
wchar_t r = malloc(n * sizeof(wchar_t)); wchar_t *r = malloc(n * sizeof(wchar_t));
return r ? return wmemcpy(r, s, n) : 0; return r ? wmemcpy(r, s, n) : 0;
} }
#endif #endif