diff --git a/bin/sh/parser.c b/bin/sh/parser.c index cc04a2ab97e..1297748600b 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -2063,7 +2063,7 @@ getprompt(void *unused __unused) */ default: ps[i] = '\\'; - if (i < PROMPTLEN - 1) + if (i < PROMPTLEN - 2) ps[++i] = *fmt; break; }