/[m4]/m4/gnulib/m4/xstrdup.c
ViewVC logotype

Diff of /m4/gnulib/m4/xstrdup.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by gary, Wed Sep 10 17:12:02 2003 UTC revision 1.3 by gary, Thu Nov 13 12:05:58 2003 UTC
# Line 29  Line 29 
29  char *  char *
30  xstrdup (const char *string)  xstrdup (const char *string)
31  {  {
32    return strcpy (xmalloc (strlen (string) + 1), string);    return xclone (string, strlen (string) + 1);
33  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26