diff --git a/src/grib_expression_class_functor.cc b/src/grib_expression_class_functor.cc index 44b728662..332d219ce 100644 --- a/src/grib_expression_class_functor.cc +++ b/src/grib_expression_class_functor.cc @@ -87,7 +87,7 @@ static char* strcasestr(const char *haystack, const char* needle) if ((sc = *haystack++) == 0) return (NULL); } while ((char)tolower((unsigned char)sc) != c); - } while (strncasecmp(haystack, needle, len) != 0); + } while (_strnicmp(haystack, needle, len) != 0); haystack--; } return ((char *)haystack);