diff options
Diffstat (limited to 'locale/programs/xstrdup.c')
-rw-r--r-- | locale/programs/xstrdup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/locale/programs/xstrdup.c b/locale/programs/xstrdup.c index a8fadb3d15..534ac56e36 100644 --- a/locale/programs/xstrdup.c +++ b/locale/programs/xstrdup.c @@ -1,5 +1,5 @@ /* xstrdup.c -- copy a string with out of memory checking - Copyright (C) 1990-2015 Free Software Foundation, Inc. + Copyright (C) 1990-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify @@ -30,8 +30,7 @@ char *xstrdup (char *string) __THROW; /* Return a newly allocated copy of STRING. */ char * -xstrdup (string) - char *string; +xstrdup (char *string) { return strcpy (xmalloc (strlen (string) + 1), string); } |