]> granicus.if.org Git - mutt/commitdiff
Terminate the correct buffer. Noted by Durval Menezes
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 4 Jan 2002 14:30:29 +0000 (14:30 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 4 Jan 2002 14:30:29 +0000 (14:30 +0000)
<durval@tmp.com.br>.  (This bug shouldn't have any security
implications. ;-)

rfc822.c

index 2b587418f0c4662f6c3a185f3c91fab5d0dba07c..7f554f530531ee63f2292123301a52c770153124 100644 (file)
--- a/rfc822.c
+++ b/rfc822.c
@@ -409,7 +409,7 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *top, const char *s)
       }
       else if (commentlen && last && !last->personal)
       {
-       terminate_buffer (phrase, phraselen);
+       terminate_buffer (comment, commentlen);
        last->personal = safe_strdup (comment);
       }
 #ifdef EXACT_ADDRESS