summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index d733613f1..d85661080 100644
--- a/file.c
+++ b/file.c
@@ -116,7 +116,7 @@ static int try_to_xslt_open_csv(const char *filename, struct memblock *mem, cons
*
* Tag markers take: strlen("<></>") = 5
*/
- buf = realloc(mem->buffer, mem->size + 5 + strlen(tag) * 2);
+ buf = realloc(mem->buffer, mem->size + 6 + strlen(tag) * 2);
if (buf != NULL) {
char *starttag = NULL;
char *endtag = NULL;