commit | b43dacd6d15e8d929cf5a20a50c9c09dc51eacf7 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Sat Feb 23 18:19:28 2013 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sat Feb 23 18:19:28 2013 +0100 |
tree | b68fe47df893035cf9340457060299ff518d22ff | |
parent | f90979b7014b6b158eed6105b1bdf6014cea70f6 [diff] [blame] |
Correct i > MAX_NSYSCALLS commparison: should be i >= MAX_NSYSCALLS Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/syscall.c b/syscall.c index ef14a0a..120b19b 100644 --- a/syscall.c +++ b/syscall.c
@@ -423,7 +423,7 @@ if (*s >= '0' && *s <= '9') { i = string_to_uint(s); - if (i > MAX_NSYSCALLS) + if (i >= MAX_NSYSCALLS) return -1; qualify_one(i, bitflag, not, -1); return 0;