From c23edfb6470f5c5af7138d96df80276ea6402acc Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Mon, 8 Mar 2010 14:58:36 -0800 Subject: [PATCH] mutt_buffer_printf: NULL dptr means use data --- ChangeLog | 10 ++++++++++ muttlib.c | 3 +++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6f385479..4e81ea90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2010-03-08 14:52 -0800 Brendan Cully (8ec606f6cafb) + + * pattern.c: If regcomp fails, assume rx has not been allocated. Fixes + a core dump for save-hook '~f foo\.bar@(something|other)\.com' =foo. + +2010-03-02 11:31 -0800 TAKAHASHI Tamotsu (fec2720ff6ef) + + * rfc822.c: Fix #2014. Thanks to Vincent Lefevre for help + with this one. + 2010-03-02 11:16 -0800 Brendan Cully (41cf44ddbb4c) * copy.c: Fix thinko in [cc02f079b1b9] diff --git a/muttlib.c b/muttlib.c index a081abef..fe3b7b4a 100644 --- a/muttlib.c +++ b/muttlib.c @@ -1675,6 +1675,9 @@ int mutt_buffer_printf (BUFFER* buf, const char* fmt, ...) va_start (ap, fmt); va_copy (ap_retry, ap); + if (!buf->dptr) + buf->dptr = buf->data; + doff = buf->dptr - buf->data; blen = buf->dsize - doff; /* solaris 9 vsnprintf barfs when blen is 0 */ -- 2.40.0