From: DIALLO David Date: Mon, 15 Dec 2014 16:53:34 +0000 (+0100) Subject: fix Cygwin build fails: array subscript has type char X-Git-Tag: suricata-2.1beta3~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1258%2Fhead;p=thirdparty%2Fsuricata.git fix Cygwin build fails: array subscript has type char --- diff --git a/src/detect-modbus.c b/src/detect-modbus.c index 306ca001a8..d1e4ec507d 100644 --- a/src/detect-modbus.c +++ b/src/detect-modbus.c @@ -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);