From: Victor Julien Date: Mon, 16 Dec 2013 12:29:06 +0000 (+0100) Subject: Fix compiler warning: X-Git-Tag: suricata-2.0rc1~197 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f14d1e94e8c1d96c7e8466412a94ed2e45f5b17;p=thirdparty%2Fsuricata.git Fix compiler warning: array subscript has type ‘char’ [-Werror=char-subscripts] --- diff --git a/src/detect-pcre.c b/src/detect-pcre.c index 9b16c22750..ff45b9245b 100644 --- a/src/detect-pcre.c +++ b/src/detect-pcre.c @@ -478,7 +478,7 @@ static DetectPcreData *DetectPcreParse (DetectEngineCtx *de_ctx, char *regexstr, } else { re_len = strlen(re); for (u = 0; u < re_len; u++) { - if (isupper(re[u])) { + if (isupper((unsigned char)re[u])) { SCLogError(SC_ERR_INVALID_SIGNATURE, "pcre host(\"W\") " "specified has an uppercase char. " "Since the hostname buffer we match against "