diff options
author | Matt Kraai <kraai@debian.org> | 2000-09-14 04:26:50 +0400 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-09-14 04:26:50 +0400 |
commit | cbbe4d6bc2da9c370b813649ca7474641bbddbf2 (patch) | |
tree | 50708041795d80ed08777e7a2a59b9560c0b3e85 /sh.c | |
parent | 56a328810b86bdc9014923a8fb0874be98795aef (diff) |
Copy the string terminator.
Diffstat (limited to 'sh.c')
-rw-r--r-- | sh.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |