From cbbe4d6bc2da9c370b813649ca7474641bbddbf2 Mon Sep 17 00:00:00 2001
From: Matt Kraai <kraai@debian.org>
Date: Thu, 14 Sep 2000 00:26:50 +0000
Subject: Copy the string terminator.

---
 shell/lash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'shell')

diff --git a/shell/lash.c b/shell/lash.c
index cd27e468b..b4b11fb89 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1071,7 +1071,7 @@ static int parseCommand(char **commandPtr, struct job *job, struct jobSet *jobLi
 
 					/* Now paste into the *commandPtr all the stuff 
 					 * leftover after the second backtick */
-					memcpy(src, charptr2, strlen(charptr2));
+					memcpy(src, charptr2, strlen(charptr2)+1);
 					free(charptr2);
 
 					/* Now recursively call parseCommand to deal with the new
-- 
cgit v1.2.3-55-g6feb