aboutsummaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh.c b/sh.c
index cd27e468b..b4b11fb89 100644
--- a/sh.c
+++ b/sh.c
@@ -1071,7 +1071,7 @@ static int parseCommand(char **commandPtr, struct job *job, struct jobSet *jobLi
1071 1071
1072 /* Now paste into the *commandPtr all the stuff 1072 /* Now paste into the *commandPtr all the stuff
1073 * leftover after the second backtick */ 1073 * leftover after the second backtick */
1074 memcpy(src, charptr2, strlen(charptr2)); 1074 memcpy(src, charptr2, strlen(charptr2)+1);
1075 free(charptr2); 1075 free(charptr2);
1076 1076
1077 /* Now recursively call parseCommand to deal with the new 1077 /* Now recursively call parseCommand to deal with the new