Commit 3524c6da authored by Sebastian Ramacher's avatar Sebastian Ramacher

Add extra element for NULL at the end

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 71ef7c7e
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment