hush: delete hush-bugs/glob_and_vars.tests for real
[oweals/busybox.git] / shell / ash.c
index 0913a2f41cf6d8d1bd033243a4b3c92e760cbf16..b490b69f1c3a52647a8f60dd971cc8da5f4c5fee 100644 (file)
@@ -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;
 }