mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-12 11:31:18 +02:00
31 lines
638 B
Plaintext
31 lines
638 B
Plaintext
--- muttlib.c.orig 2017-06-03 02:20:37 UTC
|
|
+++ muttlib.c
|
|
@@ -1378,6 +1378,12 @@ void mutt_FormatString (char *dest, /*
|
|
count = 0;
|
|
while (count < sizeof (ifstring) && *src && *src != '?' && *src != '&')
|
|
{
|
|
+ if (*src == '\\')
|
|
+ {
|
|
+ src++;
|
|
+ if (!*src)
|
|
+ break;
|
|
+ }
|
|
*cp++ = *src++;
|
|
count++;
|
|
}
|
|
@@ -1390,7 +1396,13 @@ void mutt_FormatString (char *dest, /*
|
|
count = 0;
|
|
while (count < sizeof (elsestring) && *src && *src != '?')
|
|
{
|
|
- *cp++ = *src++;
|
|
+ if (*src == '\\')
|
|
+ {
|
|
+ src++;
|
|
+ if (!*src)
|
|
+ break;
|
|
+ }
|
|
+ *cp++ = *src++;
|
|
count++;
|
|
}
|
|
*cp = 0;
|