about summary refs log tree commit diff
path: root/rfc2047.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-11-02 13:37:22 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-11-02 13:37:22 +0100
commitb336acc23cba130928a185aa8f3b0aeae84e782b (patch)
treeefecf9f25823436eb30210727def8d30d451a872 /rfc2047.c
parent3207b0a6ba2cbad44b1763e2f3ea865e24d9352c (diff)
downloadmblaze-b336acc23cba130928a185aa8f3b0aeae84e782b.tar.gz
mblaze-b336acc23cba130928a185aa8f3b0aeae84e782b.tar.xz
mblaze-b336acc23cba130928a185aa8f3b0aeae84e782b.zip
rfc2047: blaze822_decode_qp: don't waste 75% memory
Diffstat (limited to 'rfc2047.c')
-rw-r--r--rfc2047.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc2047.c b/rfc2047.c
index b9c41ab..b3782fb 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -24,7 +24,7 @@ blaze822_decode_qp(char *start, char *stop, char **deco, size_t *decleno)
 		-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1
 	};
 
-	char *buf = malloc(4 * (stop - start) + 1);
+	char *buf = malloc(stop - start + 1);
 	if (!buf)
 		return 0;