summaryrefslogtreecommitdiff
path: root/mutt-nntp/pop-cachedir.patch
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2013-09-10 17:34:38 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2013-09-10 17:34:38 +0200
commit76fafe5e8bd99b345a7c7699447e4cc5d5382f19 (patch)
treef24b857fcafd7b4f448d7bfe33fd00c5a43500a4 /mutt-nntp/pop-cachedir.patch
parentf55f7bd5f67e0454a6fdea0df9814794355762f5 (diff)
downloadarch-packages-76fafe5e8bd99b345a7c7699447e4cc5d5382f19.tar.gz
add mutt-nntp
Diffstat (limited to 'mutt-nntp/pop-cachedir.patch')
-rw-r--r--mutt-nntp/pop-cachedir.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/mutt-nntp/pop-cachedir.patch b/mutt-nntp/pop-cachedir.patch
new file mode 100644
index 0000000..ec1bc19
--- /dev/null
+++ b/mutt-nntp/pop-cachedir.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);
+ }