From: Felipe Pena Date: Fri, 11 Jul 2008 11:29:41 +0000 (+0000) Subject: MFB: - Fixed the strings size in imap_headerinfo X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1311 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5003bfc02851c0368062d30f3cb9f99d542684d6;p=php MFB: - Fixed the strings size in imap_headerinfo --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 30e9497148..847036ab38 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1995,7 +1995,7 @@ PHP_FUNCTION(imap_headerinfo) pils *imap_le_struct; MESSAGECACHE *cache; ENVELOPE *en; - char dummy[2000], fulladdress[MAILTMPLEN]; + char dummy[2000], fulladdress[MAILTMPLEN + 1]; int myargc = ZEND_NUM_ARGS(); if (myargc < 2 || myargc > 5 || zend_get_parameters_ex(myargc, &streamind, &msgno, &fromlength, &subjectlength, &defaulthost) == FAILURE) {