ash: small cosmetic change
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 14 Jun 2008 06:14:02 +0000 (06:14 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 14 Jun 2008 06:14:02 +0000 (06:14 -0000)
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;
 }