From 14f3f501bc1abc821d859e964f71e69b8ed7eaa2 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 24 May 2009 18:31:18 +0000 Subject: Found this change in an old CVS workspace: rewrite savestring() to the more standard xstrndup(). --- commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands.c') diff --git a/commands.c b/commands.c index 93d2e39..ee6fc6e 100644 --- a/commands.c +++ b/commands.c @@ -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; -- cgit v1.2.3