summaryrefslogtreecommitdiff
path: root/extra/mutt/1a4c43138685.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mutt/1a4c43138685.patch')
-rw-r--r--extra/mutt/1a4c43138685.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/mutt/1a4c43138685.patch b/extra/mutt/1a4c43138685.patch
new file mode 100644
index 000000000..ec1bc198a
--- /dev/null
+++ b/extra/mutt/1a4c43138685.patch
@@ -0,0 +1,12 @@
+Index: muttlib.c
+===================================================================
+--- muttlib.c (revision 6128:eff500f87889)
++++ muttlib.c (revision 6161:1a4c43138685)
+@@ -1961,5 +1961,6 @@
+ char *p = safe_strdup (src);
+ int rc = mutt_convert_string (&p, Charset, "utf-8", 0);
+- strfcpy (dest, rc == 0 ? p : src, dlen);
++ /* `src' may be NULL, such as when called from the pop3 driver. */
++ strfcpy (dest, (rc == 0) ? NONULL(p) : NONULL(src), dlen);
+ FREE (&p);
+ }