src/main.c, prompt(), fix incorrect backslash expansion in promptstrings

This commit is contained in:
rlar 2015-01-03 20:11:30 +01:00
parent a65a028067
commit 15a04192da
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ prompt(void)
break;
case '\\':
if (s[1])
p += sprintf(p, "%c", strip(*++s));
s++;
default:
*p = (char) strip(*s); ++p;
break;