cvs: php4 /ext/imap php_imap.c

From: Date: Mon, 19 Jun 2000 04:33:40 +0000
Subject: cvs: php4 /ext/imap php_imap.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-367@lists.php.net to get a copy of this message
andi Sun Jun 18 21:33:40 2000 EDT Modified files: /php4/ext/imap php_imap.c Log: - Fixed problem in imap_fetch_overview Index: php4/ext/imap/php_imap.c diff -u php4/ext/imap/php_imap.c:1.32 php4/ext/imap/php_imap.c:1.33 --- php4/ext/imap/php_imap.c:1.32 Sun Jun 18 09:31:51 2000 +++ php4/ext/imap/php_imap.c Sun Jun 18 21:33:40 2000 @@ -24,7 +24,7 @@ | PHP 4.0 updates: Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_imap.c,v 1.32 2000/06/18 16:31:51 eschmid Exp $ */ +/* $Id: php_imap.c,v 1.33 2000/06/19 04:33:40 andi Exp $ */ #define IMAP41 @@ -2129,8 +2129,8 @@ addr->next=NIL; addr->error=NIL; addr->adl=NIL; - string[0]=0x00; - + + string[0]='\0'; rfc822_write_address(string, addr); RETVAL_STRING(string, 1); } @@ -2960,6 +2960,7 @@ } if (env->from) { env->from->next=NULL; + address = '\0'; rfc822_write_address(address, env->from); add_property_string(myoverview, "from", address, 1); } @@ -3529,7 +3530,7 @@ while (ok && addresstmp) { /* while length < 1000 and we are not at the end of the list */ addresstmp2 = addresstmp->next; /* save the pointer to the next address */ addresstmp->next = NULL; /* make this address the only one now. */ - tempaddress[0] = 0x00; /* reset tempaddress buffer */ + tempaddress[0] = '\0'; /* reset tempaddress buffer */ rfc822_write_address(tempaddress, addresstmp); /* ok, write the address into tempaddress string */ if ((strlen(tempaddress) + strlen(fulladdress)) < 1000) { /* is the new address + total address < 1000 */ if (strlen(fulladdress)) {

« previous php.cvs (#367) next »