From: Felipe Pena Date: Fri, 11 Jul 2008 11:27:32 +0000 (+0000) Subject: MFB: - Fixed the strings size in imap_headerinfo X-Git-Tag: php-5.3.0alpha1~400 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1f2a238cadb36090d4c65236d0e30f4126ed022;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 c09d7e8380..a5ff6b1db8 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1968,7 +1968,7 @@ PHP_FUNCTION(imap_headerinfo) pils *imap_le_struct; MESSAGECACHE *cache; ENVELOPE *en; - char dummy[2000], fulladdress[MAILTMPLEN]; + char dummy[2000], fulladdress[MAILTMPLEN + 1]; if (zend_parse_parameters(argc TSRMLS_CC, "rl|lls", &streamind, &msgno, &fromlength, &subjectlength, &defaulthost, &defaulthost_len) == FAILURE) { return;