aboutsummaryrefslogtreecommitdiff
path: root/dpi/datauri.c
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-11-25 22:22:19 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-11-25 22:22:19 +0100
commit00649e89e89ff0caeb46a42cb0265d8c0c657840 (patch)
tree400251a91203260eba5e1961de19baaade17d4ba /dpi/datauri.c
parent46b977f6c5eb0bdf98b0cfe3632e9f6d0d75ed8e (diff)
fix crash in datauri dpi
noticed by: corvid <corvid@lavabit.com> and Jeremy Henty's valgrind logs
Diffstat (limited to 'dpi/datauri.c')
-rw-r--r--dpi/datauri.c2
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;
}