summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index cc04a2a..1297748 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;
}
OpenPOWER on IntegriCloud