vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / wchar / wmemcpy.c
blob9670a7c360e234e811904c8ac9d81f829052a576
1 /*
2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
6 #include <string.h>
8 #include <wchar_private.h>
11 wchar_t*
12 __wmemcpy(wchar_t* dest, const wchar_t* src, size_t count)
14 return memcpy(dest, src, count * sizeof(wchar_t));
18 B_DEFINE_WEAK_ALIAS(__wmemcpy, wmemcpy);