rfc2047: blaze822_decode_qp: don't waste 75% memory

pull/10/head
Christian Neukirchen 8 years ago
parent 3207b0a6ba
commit b336acc23c

@ -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;

Loading…
Cancel
Save