From f1e59cef7a988d0dc72d7b64771ea9cf9c3dd7b0 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Thu, 23 Apr 1992 10:01:12 +0000 Subject: [PATCH] jba: fixed test on priority --- src/db/callback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db/callback.c b/src/db/callback.c index f13f71629..ffe19e6e9 100644 --- a/src/db/callback.c +++ b/src/db/callback.c @@ -30,6 +30,7 @@ * Modification Log: * ----------------- * .01 12-12-91 mrk moved from dbScan.c to callback.c + * .02 04-23-92 jba Fixed test on priority */ #include @@ -74,7 +75,7 @@ void callbackRequest(CALLBACK *pcallback) int nput; static int status; - if(priority<0 || priority>(NUM_CALLBACK_PRIORITIES)) { + if(priority<0 || priority>=(NUM_CALLBACK_PRIORITIES)) { logMsg("callbackRequest called with invalid priority"); return; }