about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1996-08-15 01:23:29 +0000
committerUlrich Drepper <drepper@redhat.com>1996-08-15 01:23:29 +0000
commit706074a5bb120f78f4fd8bc40c6814f14e17e530 (patch)
treec5da6add27af818bf38e5d9e4f9b3c2dedc718ff /string
parent046e3001f9370904c1efd764cfe49c472818ddfb (diff)
downloadglibc-706074a5bb120f78f4fd8bc40c6814f14e17e530.tar.gz
glibc-706074a5bb120f78f4fd8bc40c6814f14e17e530.tar.xz
glibc-706074a5bb120f78f4fd8bc40c6814f14e17e530.zip
update from main archive 960814 cvs/libc-960815
Diffstat (limited to 'string')
-rw-r--r--string/strdup.c4
1 files changed, 1 insertions, 3 deletions
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)