From 785ac6a450c901b5f8a32573e446926dd8b2e502 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 20 Feb 2013 19:00:52 +0100 Subject: vf_parser: fix memory corruption due to incorrect pointer --- src/vf_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vf_parser.c') diff --git a/src/vf_parser.c b/src/vf_parser.c index 0d4e71e..4775a37 100644 --- a/src/vf_parser.c +++ b/src/vf_parser.c @@ -569,7 +569,7 @@ bool_t vf_parse_text( /* handle remainder */ if (p_parse->p_b64rem) { - char* newbuf = (char*)vf_malloc(len + p_strlen(p_parse->p_b64rem + 1)); + char* newbuf = (char*)vf_malloc(len + p_strlen(p_parse->p_b64rem) + 1); p_strcpy(newbuf, p_parse->p_b64rem); p_strcat(newbuf, b64buf); -- cgit v1.1-32-gdbae