]> granicus.if.org Git - php/commitdiff
MFH: Missing part of the patch for bug #32589
authorIlia Alshanetsky <iliaa@php.net>
Fri, 8 Apr 2005 15:04:52 +0000 (15:04 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 8 Apr 2005 15:04:52 +0000 (15:04 +0000)
ext/imap/php_imap.c

index 56f65d8fb85525a8ea00f141c8dc14962e814877..4c36189869fb5e0f04d9681c323f565041c90b06 100644 (file)
@@ -3016,7 +3016,7 @@ PHP_FUNCTION(imap_mail_compose)
                                convert_to_string_ex(pvalue);
                                tmp_param = mail_newbody_parameter();
                                tmp_param->value = (char *) fs_get(Z_STRLEN_PP(pvalue) + 1);
-                               memcpy(disp_param->value, Z_STRVAL_PP(pvalue), Z_STRLEN_PP(pvalue) + 1);
+                               memcpy(tmp_param->value, Z_STRVAL_PP(pvalue), Z_STRLEN_PP(pvalue) + 1);
                                tmp_param->attribute = "CHARSET";
                                tmp_param->next = bod->parameter;
                                bod->parameter = tmp_param;