From 706074a5bb120f78f4fd8bc40c6814f14e17e530 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 15 Aug 1996 01:23:29 +0000 Subject: update from main archive 960814 --- string/strdup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'string') diff --git a/string/strdup.c b/string/strdup.c index 3e9eee0945..ef883eecdd 100644 --- a/string/strdup.c +++ b/string/strdup.c @@ -31,8 +31,6 @@ __strdup (const char *s) if (new == NULL) return NULL; - memcpy (new, s, len); - - return (char *) new; + return (char *) memcpy (new, s, len); } weak_alias (__strdup, strdup) -- cgit v1.2.3