coverity#58283 patterns vs MAXPATHS

This commit is contained in:
Caolán McNamara 2014-09-18 15:42:34 +00:00
parent d36878b962
commit 8c5092e493
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2014-09-18 Caolán McNamara <caolán at redhat dot com>:
* coverity#58283 now 0 coverity warnings
2014-06-30 Rene Engelhard <rene at rene - engelhard dot de>:
* add missing stdio.h to hyphen.h, reported by David Suárez
in deb#753218.

View File

@ -202,7 +202,7 @@ int main(int argc, const char* argv[]) {
pat[j]=0;
pattab_key[patterns] = pat;
pattab_val[patterns++] = org;
if (patterns>MAXPATHS) die("to many base patterns");
if (patterns>=MAXPATHS) die("to many base patterns");
}
}
fclose(in);