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

index 30e9497148d0054f094d7dd8cc19109e16ffe4c6..847036ab3860732274e394235131302620bc830d 100644 (file)
@@ -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) {