diff options
author | Paul Smith <psmith@gnu.org> | 2009-05-24 18:31:18 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2009-05-24 18:31:18 +0000 |
commit | cce957c4f5348ee9d057816ac31ad46cedd3bc83 (patch) | |
tree | dff17f1aa8f78ee5a59b32b0beedf6c37a7adf82 /commands.c | |
parent | 9501a902cdb13bfb0aa90bad32c11c1be8c70aee (diff) | |
download | make-cce957c4f5348ee9d057816ac31ad46cedd3bc83.tar.gz |
Found this change in an old CVS workspace: rewrite savestring() to the
more standard xstrndup().
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -313,7 +313,7 @@ chop_commands (struct commands *cmds) nlines += 2; lines = xrealloc (lines, nlines * sizeof (char *)); } - lines[idx++] = savestring (p, end - p); + lines[idx++] = xstrndup (p, end - p); p = end; if (*p != '\0') ++p; |