]> granicus.if.org Git - php/commitdiff
MFB: - Fixed the strings size in imap_headerinfo
authorFelipe Pena <felipe@php.net>
Fri, 11 Jul 2008 11:27:32 +0000 (11:27 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 11 Jul 2008 11:27:32 +0000 (11:27 +0000)
ext/imap/php_imap.c

index c09d7e8380b63de2226d83cb97562fa84143bfb7..a5ff6b1db82cd6341ec85e150ca34c9709e34355 100644 (file)
@@ -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;