projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccfc480
)
Import latest version from gnulib.
author
Jim Meyering
<jim@meyering.net>
Mon, 13 Oct 2003 15:27:11 +0000
(15:27 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 13 Oct 2003 15:27:11 +0000
(15:27 +0000)
lib/xstrdup.c
patch
|
blob
|
history
diff --git
a/lib/xstrdup.c
b/lib/xstrdup.c
index 1182c592ac54f98e7965755b9959fbfdea610b1a..58f18beb6f9cb79818727a411e8037237170ca3f 100644
(file)
--- 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
);
}