summaryrefslogtreecommitdiff
path: root/ext/imap/php_imap.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-06-19 04:33:40 +0000
committerAndi Gutmans <andi@php.net>2000-06-19 04:33:40 +0000
commitb831ca7d648cf8fd33a2208608a6a0c09b663e69 (patch)
treeb906122034316bfa51de1fa7d032a73fc4ee5107 /ext/imap/php_imap.c
parent7d6784d98df7f4ddde11bf6dbcddfa896a638958 (diff)
downloadphp-git-b831ca7d648cf8fd33a2208608a6a0c09b663e69.tar.gz
- Fixed problem in imap_fetch_overview
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r--ext/imap/php_imap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 55d1c947e2..7aff4ce5d4 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -2129,8 +2129,8 @@ PHP_FUNCTION(imap_rfc822_write_address)
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 @@ PHP_FUNCTION(imap_fetch_overview)
}
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 @@ void _php_imap_parse_address (ADDRESS *addresslist, char *fulladdress, zval *pad
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)) {