summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMatt Kraai2000-09-14 00:26:50 +0000
committerMatt Kraai2000-09-14 00:26:50 +0000
commitcbbe4d6bc2da9c370b813649ca7474641bbddbf2 (patch)
tree50708041795d80ed08777e7a2a59b9560c0b3e85 /shell
parent56a328810b86bdc9014923a8fb0874be98795aef (diff)
downloadbusybox-cbbe4d6bc2da9c370b813649ca7474641bbddbf2.zip
busybox-cbbe4d6bc2da9c370b813649ca7474641bbddbf2.tar.gz
Copy the string terminator.
Diffstat (limited to 'shell')
-rw-r--r--shell/lash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/lash.c b/shell/lash.c
index cd27e46..b4b11fb 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