diff options
author | Quentin Rameau <quinq@fifth.space> | 2017-04-23 18:25:40 +0200 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2017-04-23 18:27:43 +0200 |
commit | 4b752834d82bc879e412d8eda5e54474b86f36fd (patch) | |
tree | f222622f178f2b5a7dd46b6f161a9d14580be631 /surf.c | |
parent | ac837f43b965b2d2f58e52149dde4dc2c297a8c1 (diff) | |
download | surf-4b752834d82bc879e412d8eda5e54474b86f36fd.tar.gz surf-4b752834d82bc879e412d8eda5e54474b86f36fd.tar.bz2 surf-4b752834d82bc879e412d8eda5e54474b86f36fd.zip |
Fix possible oob access of cmd in newwindow()
Thanks to tarug0 for spotting this!
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |