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

index 61ec70857501fea3930d96b626ab8db8c3550432..387fd2f0b989a4758f88740bceb5348b413f943b 100644 (file)
@@ -1575,7 +1575,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) {