From eb7588322635a2e4842b05f51f43f2fd5cdc387f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 20 Aug 2017 01:18:05 -0400 Subject: [PATCH] OS/2: Fixed NULL pointer dereference. --- src/physfs_platform_os2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physfs_platform_os2.c b/src/physfs_platform_os2.c index 805aa562..311830a3 100644 --- a/src/physfs_platform_os2.c +++ b/src/physfs_platform_os2.c @@ -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);