pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac837f4
)
Fix possible oob access of cmd in newwindow()
author
Quentin Rameau
<quinq@fifth.space>
Sun, 23 Apr 2017 16:25:40 +0000
(18:25 +0200)
committer
Quentin Rameau
<quinq@fifth.space>
Sun, 23 Apr 2017 16:27:43 +0000
(18:27 +0200)
Thanks to tarug0 for spotting this!
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
cdd0cc6
..
b01aa75
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-817,7
+817,7
@@
newwindow(Client *c, const Arg *a, int noembed)
{
int i = 0;
char tmp[64];
- const char *cmd[2
6
], *uri;
+ const char *cmd[2
7
], *uri;
const Arg arg = { .v = cmd };
cmd[i++] = argv0;