aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}