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/strdup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libc/string/strdup.c') diff --git a/lib/libc/string/strdup.c b/lib/libc/string/strdup.c index c0b581d40179..570ad838527d 100644 --- a/lib/libc/string/strdup.c +++ b/lib/libc/string/strdup.c @@ -38,8 +38,7 @@ __FBSDID("$FreeBSD$"); #include char * -strdup(str) - const char *str; +strdup(const char *str) { size_t len; char *copy; -- cgit v1.2.3