src/main.c, prompt(), fix incorrect backslash expansion in promptstrings
This commit is contained in:
parent
a65a028067
commit
15a04192da
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue