commit 389e91d29c419a97a61c956d88e8c98918842057
parent df81de82641a9089889d208da552b6f2ca6cdd24
Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 25 Jul 2012 18:05:55 +0200
Doing the last commit right. Smprintf() is slow.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mime.c b/mime.c
@@ -807,7 +807,7 @@ mime_parsebufintern(mime_t *mime, char *str, int len)
&value);
if (value != NULL && hdr != NULL) {
if (hdr->data != NULL) {
- part = smprintf("%s", value);
+ part = memdup(value, strlen(value)+1);
i = strlen(part);
key = memdupcat(hdr->data,
hdr->datalen-1,