diff options
-rw-r--r-- | shell/ash.c | 2 |
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) | |||
5835 | arg++; /* skip both \\, not just first one */ | 5835 | arg++; /* skip both \\, not just first one */ |
5836 | arg++; | 5836 | arg++; |
5837 | } | 5837 | } |
5838 | *idx++ = c; | 5838 | *idx = c; /* NUL */ |
5839 | 5839 | ||
5840 | return repl; | 5840 | return repl; |
5841 | } | 5841 | } |