From: Brendan Cully Date: Thu, 30 Dec 2010 18:09:37 +0000 (-0800) Subject: Handle missing : in write_one_header debug statement. Closes #3483 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6dcc583c6bc585b53cd5480275f59cb47041052a;p=mutt Handle missing : in write_one_header debug statement. Closes #3483 --- diff --git a/sendlib.c b/sendlib.c index 8297ad5d..95d62330 100644 --- a/sendlib.c +++ b/sendlib.c @@ -1799,7 +1799,7 @@ static int write_one_header (FILE *fp, int pfxw, int max, int wraplen, else { t = strchr (start, ':'); - if (t > end) + if (!t || t > end) { dprint (1, (debugfile, "mwoh: warning: header not in " "'key: value' format!\n"));