Skip to content

Commit

Permalink
OS/2: Fixed NULL pointer dereference.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 20, 2017
1 parent 689333d commit eb75883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physfs_platform_os2.c
Expand Up @@ -203,7 +203,7 @@ static char *cvtPathToCorrectCase(char *buf)
int cmp;
char *utf8 = cvtCodepageToUtf8(fb.achName);
if (!utf8) /* ugh, maybe we'll get lucky with the C runtime. */
cmp = stricmp(utf8, fname);
cmp = stricmp(fb.achName, fname);
else
{
cmp = PHYSFS_utf8stricmp(utf8, fname);
Expand Down

0 comments on commit eb75883

Please sign in to comment.