mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit b336acc23cba130928a185aa8f3b0aeae84e782b
parent 3207b0a6ba2cbad44b1763e2f3ea865e24d9352c
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Wed,  2 Nov 2016 13:37:22 +0100

rfc2047: blaze822_decode_qp: don't waste 75% memory

Diffstat:
rfc2047.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;