# HG changeset patch
# User Michael Elkins <me@mutt.org>
# Date 1285942464 25200
# Node ID 1a4c43138685b628dedb14932934ff392104ac72
# Parent c10f8863e979e6f7fa61649128e3b659b4cd8827
fix segfault when $message_cachedir is set and opening a POP3 mailbox.
fixes #3457
diff -r c10f8863e979 -r 1a4c43138685 muttlib.c
a
|
b
|
|
1960 | 1960 | { |
1961 | 1961 | char *p = safe_strdup (src); |
1962 | 1962 | int rc = mutt_convert_string (&p, Charset, "utf-8", 0); |
1963 | | strfcpy (dest, rc == 0 ? p : src, dlen); |
| 1963 | /* `src' may be NULL, such as when called from the pop3 driver. */ |
| 1964 | strfcpy (dest, (rc == 0) ? NONULL(p) : NONULL(src), dlen); |
1964 | 1965 | FREE (&p); |
1965 | 1966 | } |