From 3e1712010592559298da60ca25be569a1c7b0b2c Mon Sep 17 00:00:00 2001 From: Mark Riddoch Date: Thu, 29 May 2014 16:57:17 +0100 Subject: [PATCH] Allow space for terminating NULL in args array --- server/modules/routing/debugcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/debugcmd.c b/server/modules/routing/debugcmd.c index e7720cb30..5be0c72bb 100644 --- a/server/modules/routing/debugcmd.c +++ b/server/modules/routing/debugcmd.c @@ -516,7 +516,7 @@ execute_cmd(CLI_SESSION *cli) { DCB *dcb = cli->session->client; int argc, i, j, found = 0; -char *args[MAXARGS]; +char *args[MAXARGS + 1]; unsigned long arg1, arg2, arg3; int in_quotes = 0, escape_next = 0; char *ptr, *lptr;