Fix possible oob access of cmd in newwindow()
Thanks to tarug0 for spotting this!
This commit is contained in:
parent
ac837f43b9
commit
4b752834d8
1 changed files with 1 additions and 1 deletions
2
surf.c
2
surf.c
|
@ -817,7 +817,7 @@ newwindow(Client *c, const Arg *a, int noembed)
|
|||
{
|
||||
int i = 0;
|
||||
char tmp[64];
|
||||
const char *cmd[26], *uri;
|
||||
const char *cmd[27], *uri;
|
||||
const Arg arg = { .v = cmd };
|
||||
|
||||
cmd[i++] = argv0;
|
||||
|
|
Loading…
Reference in a new issue