From 3524c6da2331921383b25085d8497e76cfa7672f Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sun, 19 Jan 2014 17:15:09 +0100 Subject: [PATCH] Add extra element for NULL at the end Signed-off-by: Sebastian Ramacher --- synctex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synctex.c b/synctex.c index a872910..e3aaee4 100644 --- a/synctex.c +++ b/synctex.c @@ -64,7 +64,7 @@ synctex_edit(zathura_t* zathura, zathura_page_t* page, int x, int y) } char** argv = g_try_malloc0(sizeof(char*) * (zathura->synctex.editor != NULL ? - 6 : 4)); + 7 : 5)); if (argv == NULL) { return; } @@ -105,7 +105,7 @@ synctex_rectangles_from_position(const char* filename, const char* position, return NULL; } - char** argv = g_try_malloc0(sizeof(char*) * 6); + char** argv = g_try_malloc0(sizeof(char*) * 7); if (argv == NULL) { return NULL; }