diff options
-rw-r--r-- | rfc2047.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc2047.c b/rfc2047.c index 94b9a59..2b9dfc0 100644 --- a/rfc2047.c +++ b/rfc2047.c @@ -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; |