From 15a04192da2011c8bef1e5d6da0cff79df961f1d Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 3 Jan 2015 20:11:30 +0100 Subject: [PATCH] src/main.c, prompt(), fix incorrect backslash expansion in promptstrings --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 78f53c73c..73df216bb 100644 --- a/src/main.c +++ b/src/main.c @@ -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;