tDoing the last commit right. Smprintf() is slow. - rohrpost - A commandline mail client to change the world as we see it.
(HTM) git clone git://r-36.net/rohrpost
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 389e91d29c419a97a61c956d88e8c98918842057
(DIR) parent df81de82641a9089889d208da552b6f2ca6cdd24
(HTM) 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:
mime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/mime.c b/mime.c
t@@ -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,