aboutsummaryrefslogtreecommitdiff
path: root/lash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lash.c')
-rw-r--r--lash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lash.c b/lash.c
index cd27e468b..b4b11fb89 100644
--- a/lash.c
+++ b/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