From 3064b42692148fd0dc55d9531deacb3e16826e67 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Tue, 27 Oct 2009 21:14:06 +0100 Subject: [PATCH] Small fix to Eric great patch for readline commandcompletion so it also compiles on non gcc compilers. --- bacula/src/console/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/console/console.c b/bacula/src/console/console.c index af1e4ca713..a2023d1f04 100644 --- a/bacula/src/console/console.c +++ b/bacula/src/console/console.c @@ -460,12 +460,12 @@ static void match_kw(regex_t *preg, const char *what, int len, POOLMEM **buf) { int rc, size; int nmatch=20; - regmatch_t pmatch[nmatch]; + regmatch_t pmatch[20]; if (len <= 0) { return; } - rc = regexec(preg, what, nmatch, pmatch, 0); + rc = regexec(preg, what, nmatch, pmatch, 0); if (rc == 0) { size = pmatch[0].rm_eo - pmatch[0].rm_so; -- 2.39.5