mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-27 13:36:00 +01:00
Add extra element for NULL at the end
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
71ef7c7eed
commit
3524c6da23
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue