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/wcslcpy.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/libc/string/wcslcpy.c') diff --git a/lib/libc/string/wcslcpy.c b/lib/libc/string/wcslcpy.c index 1b9459a0c19e..b104a0622a6e 100644 --- a/lib/libc/string/wcslcpy.c +++ b/lib/libc/string/wcslcpy.c @@ -44,10 +44,7 @@ __FBSDID("$FreeBSD$"); * Returns wcslen(src); if retval >= siz, truncation occurred. */ size_t -wcslcpy(dst, src, siz) - wchar_t *dst; - const wchar_t *src; - size_t siz; +wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz) { wchar_t *d = dst; const wchar_t *s = src; -- cgit v1.2.3