]> git.sur5r.net Git - bacula/bacula/commitdiff
Small fix to Eric great patch for readline commandcompletion so it also compiles...
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 27 Oct 2009 20:14:06 +0000 (21:14 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Tue, 27 Oct 2009 20:14:06 +0000 (21:14 +0100)
bacula/src/console/console.c

index af1e4ca713c83ee343ad076337fddad85eb5f03d..a2023d1f046d0e2d741baac878ee38c0925a4d2a 100644 (file)
@@ -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;