fix typos in compatibility function
This commit is contained in:
parent
391eb656fe
commit
d7fa22c88f
|
@ -8,9 +8,9 @@
|
|||
// this function is part of POSIX.2008
|
||||
wchar_t * wcsdup(const wchar_t *s)
|
||||
{
|
||||
size_t n = wcslen(s) + 1;
|
||||
wchar_t r = malloc(n * sizeof(wchar_t));
|
||||
return r ? return wmemcpy(r, s, n) : 0;
|
||||
size_t n = wcslen(s) + 1;
|
||||
wchar_t *r = malloc(n * sizeof(wchar_t));
|
||||
return r ? wmemcpy(r, s, n) : 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue