From bd604b4b064135e661660c045cd31145e2e4ce71 Mon Sep 17 00:00:00 2001 From: Daniel Gerzo Date: Tue, 3 Feb 2009 17:58:20 +0000 Subject: - ANSIfy function definitions - use nul when we are looking for a terminating character where appropriate Approved by: imp --- lib/libc/string/wmemmove.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/libc/string/wmemmove.c') diff --git a/lib/libc/string/wmemmove.c b/lib/libc/string/wmemmove.c index 6b3ee94e3a90..05cfd1082afe 100644 --- a/lib/libc/string/wmemmove.c +++ b/lib/libc/string/wmemmove.c @@ -38,11 +38,7 @@ __FBSDID("$FreeBSD$"); #include wchar_t * -wmemmove(d, s, n) - wchar_t *d; - const wchar_t *s; - size_t n; +wmemmove(wchar_t *d, const wchar_t *s, size_t n) { - return (wchar_t *)memmove(d, s, n * sizeof(wchar_t)); } -- cgit v1.2.3