vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / wchar / wcpcpy.c
blob320c5ef900059913ee7147ad83a94f91ff78f722
1 /*
2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
6 #include <wchar_private.h>
9 wchar_t*
10 __wcpcpy(wchar_t* dest, const wchar_t* src)
12 while (*src != L'\0')
13 *dest++ = *src++;
14 *dest = L'\0';
16 return dest;
20 B_DEFINE_WEAK_ALIAS(__wcpcpy, wcpcpy);