ports/mail/mutt/files/patch-dgc-deepif
Steve Wills 9f2ff2b76e mail/mutt: Update to 1.11.1
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)
2018-12-03 22:23:03 +00:00

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;