rfc2047: blaze822_decode_qp: off-by-one in qp decoding

pull/1/merge
Christian Neukirchen 8 years ago
parent 42677a0586
commit 11c9ce78f1

@ -25,7 +25,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));
char *buf = malloc(4 * (stop - start) + 1);
if (!buf)
return 0;

Loading…
Cancel
Save