summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-13 15:27:11 +0000
committerJim Meyering <jim@meyering.net>2003-10-13 15:27:11 +0000
commit0e59370bc669ff4e066d9cf4da71ede0ba5d734e (patch)
treec77fb5e1e57ddcdb9aaaeeabf7db02fe67844f9e /lib
parentccfc4801cbba464d91da8a0f118c26c161fb533c (diff)
downloadcoreutils-0e59370bc669ff4e066d9cf4da71ede0ba5d734e.tar.xz
Import latest version from gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/xstrdup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xstrdup.c b/lib/xstrdup.c
index 1182c592a..58f18beb6 100644
--- a/lib/xstrdup.c
+++ b/lib/xstrdup.c
@@ -29,5 +29,5 @@
char *
xstrdup (const char *string)
{
- return strcpy (xmalloc (strlen (string) + 1), string);
+ return xclone (string, strlen (string) + 1);
}