From be0d932a210cfcec69ce47c98a62d49a90af512b Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Fri, 23 Jan 2015 17:13:50 +1100 Subject: [PATCH] SICS-846 Off by one error in argc check sct_asyncqueue.c --- site_ansto/hardsup/sct_asyncqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site_ansto/hardsup/sct_asyncqueue.c b/site_ansto/hardsup/sct_asyncqueue.c index 1fec9251..897f162e 100644 --- a/site_ansto/hardsup/sct_asyncqueue.c +++ b/site_ansto/hardsup/sct_asyncqueue.c @@ -324,7 +324,7 @@ static int scaqaAsconInit(Ascon *a, SConnection *pCon, int argc, char *argv[]) for (i = 0; i < argc; ++i) { SCPrintf(pCon, eStatus, "scaqaAsconInit: arg[%d] = %s\n", i, argv[i]); } - if (argc < 1) { + if (argc < 2) { SCPrintf(pCon, eError, "Insufficient arguments to scaqaAsconInit: %d\n", argc); return 0; }