From ff78f1db246a437e92cf0097b431599033d43aad Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Fri, 4 Jan 2002 14:30:29 +0000 Subject: [PATCH] Terminate the correct buffer. Noted by Durval Menezes . (This bug shouldn't have any security implications. ;-) --- rfc822.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfc822.c b/rfc822.c index 2b587418..7f554f53 100644 --- 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 -- 2.40.0