From 928b648f9350c21f91c19c605e32b9bd83e3388f Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Mon, 14 Apr 2025 20:32:18 -0700 Subject: [PATCH] Skip calling islower before toupper --- src/ZeekString.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ZeekString.cc b/src/ZeekString.cc index ebdf0d5cce..f51810dba3 100644 --- a/src/ZeekString.cc +++ b/src/ZeekString.cc @@ -265,8 +265,7 @@ std::istream& String::Read(std::istream& is, int format) { void String::ToUpper() { for ( int i = 0; i < n; ++i ) - if ( islower(b[i]) ) - b[i] = toupper(b[i]); + b[i] = std::toupper(b[i]); } String* String::GetSubstring(int start, int len) const {