From 0bdf494b544cbc45bbc571ceefe83f750c9b3ef7 Mon Sep 17 00:00:00 2001 From: DIALLO David Date: Mon, 15 Dec 2014 17:53:34 +0100 Subject: [PATCH] fix Cygwin build fails: array subscript has type char --- src/detect-modbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2