mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 11:56:28 -04:00
30 lines
666 B
Text
30 lines
666 B
Text
--- muttlib.c.orig 2022-06-05 20:10:55 UTC
|
|
+++ muttlib.c
|
|
@@ -1744,6 +1744,12 @@ void mutt_FormatString (char *dest, /* output buffer
|
|
count = 0;
|
|
while (count < sizeof (ifstring) && *src && *src != '?' && *src != '&')
|
|
{
|
|
+ if (*src == '\\')
|
|
+ {
|
|
+ src++;
|
|
+ if (!*src)
|
|
+ break;
|
|
+ }
|
|
*cp++ = *src++;
|
|
count++;
|
|
}
|
|
@@ -1756,7 +1762,13 @@ void mutt_FormatString (char *dest, /* output buffer
|
|
count = 0;
|
|
while (count < sizeof (elsestring) && *src && *src != '?')
|
|
{
|
|
- *cp++ = *src++;
|
|
+ if (*src == '\\')
|
|
+ {
|
|
+ src++;
|
|
+ if (!*src)
|
|
+ break;
|
|
+ }
|
|
+ *cp++ = *src++;
|
|
count++;
|
|
}
|
|
*cp = 0;
|