Skip to content
Snippets Groups Projects
Commit 62dd4938 authored by Robert Loehning's avatar Robert Loehning
Browse files

Fixed crash. Passing negative values to isalnum compiled with MSVC crashed.

parent 4f971b9b
No related branches found
No related tags found
No related merge requests found
......@@ -142,9 +142,9 @@ void runFileSearch(QFutureInterface<FileSearchResult> &future,
const char *beforeRegion = regionPtr - 1;
bool equal = true;
if (wholeWord &&
( isalnum(*beforeRegion)
( isalnum((unsigned char)*beforeRegion)
|| (*beforeRegion == '_')
|| isalnum(*afterRegion)
|| isalnum((unsigned char)*afterRegion)
|| (*afterRegion == '_'))) {
equal = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment