aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 0913a2f41..b490b69f1 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -5835,7 +5835,7 @@ parse_sub_pattern(char *arg, int inquotes)
arg++; /* skip both \\, not just first one */
arg++;
}
- *idx++ = c;
+ *idx = c; /* NUL */
return repl;
}