diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-02-20 18:23:33 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-02-20 18:23:33 +0000 |
commit | 1aab604198167cc856df8040043fb3f13dbf1b92 (patch) | |
tree | aafcc87650e932fcb2f466b662b6954e47922ea6 /ext/imap/php_imap.c | |
parent | 776144866c59c538c055483147ec79038bea2517 (diff) | |
download | php-git-1aab604198167cc856df8040043fb3f13dbf1b92.tar.gz |
Simplify Code.
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index f900c9b03c..1257731b24 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3169,8 +3169,7 @@ PHP_FUNCTION(imap_mail_compose) efree(tempstring); } else { - mystring = emalloc(strlen(tmp) + 1); - strcpy(mystring, tmp); + mystring = estrdup(tmp); } bod = topbod; @@ -3206,10 +3205,9 @@ PHP_FUNCTION(imap_mail_compose) /* output cookie, mini-header, and contents */ tempstring=emalloc(strlen(mystring)+strlen(tmp)+1); - strcpy(tempstring, mystring); + sprintf(tempstring, "%s%s", mystring, tmp); efree(mystring); mystring=tempstring; - strcat(mystring, tmp); bod=&part->body; |