From 4b752834d82bc879e412d8eda5e54474b86f36fd Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Sun, 23 Apr 2017 18:25:40 +0200 Subject: [PATCH] Fix possible oob access of cmd in newwindow() Thanks to tarug0 for spotting this! --- surf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surf.c b/surf.c index cdd0cc6..b01aa75 100644 --- 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[26], *uri; + const char *cmd[27], *uri; const Arg arg = { .v = cmd }; cmd[i++] = argv0;