diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-11-25 22:22:19 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-11-25 22:22:19 +0100 |
commit | 00649e89e89ff0caeb46a42cb0265d8c0c657840 (patch) | |
tree | 400251a91203260eba5e1961de19baaade17d4ba | |
parent | 46b977f6c5eb0bdf98b0cfe3632e9f6d0d75ed8e (diff) |
fix crash in datauri dpi
noticed by: corvid <corvid@lavabit.com> and
Jeremy Henty's valgrind logs
-rw-r--r-- | dpi/datauri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dpi/datauri.c b/dpi/datauri.c index 055ecd9f..0e3560ec 100644 --- a/dpi/datauri.c +++ b/dpi/datauri.c @@ -150,8 +150,8 @@ char *a_Url_decode_hex_str(const char *str, size_t *p_sz) } *dest = 0; - new_str = dRealloc(new_str, sizeof(char) * (dest - new_str + 1)); *p_sz = (size_t)(dest - new_str); + new_str = dRealloc(new_str, sizeof(char) * (dest - new_str + 1)); return new_str; } |