]> granicus.if.org Git - strace/commitdiff
Correct i > MAX_NSYSCALLS commparison: should be i >= MAX_NSYSCALLS
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 23 Feb 2013 17:19:28 +0000 (18:19 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 23 Feb 2013 17:19:28 +0000 (18:19 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
syscall.c

index ef14a0afa04b2554f2d830cecec17c54871b1d30..120b19bb79500cf6a7e66c3c01e0490562236c04 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -423,7 +423,7 @@ qual_syscall(const char *s, int bitflag, int not)
 
        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;