mirror of
https://git.freebsd.org/ports.git
synced 2025-07-15 08:19:13 -04:00
While here: * Remove MUTT_LITE parts * pet portlint - NNTP broken for 1.11.0 * Add patch-qresync-crash fixes a crash coming in 1.11.1 PR: 233680 Submitted by: Derek Schrock <dereks@lifeofadishwasher.com> (maintainer)
30 lines
638 B
Text
30 lines
638 B
Text
--- muttlib.c.orig 2017-06-03 02:20:37 UTC
|
|
+++ muttlib.c
|
|
@@ -1425,6 +1425,12 @@ void mutt_FormatString (char *dest, /*
|
|
count = 0;
|
|
while (count < sizeof (ifstring) && *src && *src != '?' && *src != '&')
|
|
{
|
|
+ if (*src == '\\')
|
|
+ {
|
|
+ src++;
|
|
+ if (!*src)
|
|
+ break;
|
|
+ }
|
|
*cp++ = *src++;
|
|
count++;
|
|
}
|
|
@@ -1437,7 +1437,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;
|