]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fix Cygwin build fails: array subscript has type char 1258/head
authorDIALLO David <diallo@et.esiea.fr>
Mon, 15 Dec 2014 16:53:34 +0000 (17:53 +0100)
committerDIALLO David <diallo@et.esiea.fr>
Mon, 15 Dec 2014 16:53:34 +0000 (17:53 +0100)
src/detect-modbus.c

index 306ca001a8d56ad4c05032afee30a99a6cf4266c..d1e4ec507d5387315da971d3a5a447db3649a9e0 100644 (file)
@@ -292,7 +292,7 @@ static DetectModbus *DetectModbusFunctionParse(char *str)
     if (unlikely(modbus == NULL))
         goto error;
 
-    if (isdigit(ptr[0])) {
+    if (isdigit((unsigned char)ptr[0])) {
         modbus->function = atoi((const char*) ptr);
         SCLogDebug("will look for modbus function %d", modbus->function);