OS/2: Fixed NULL pointer dereference.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 20 Aug 2017 01:18:05 -0400
changeset 1594 750265d0c779
parent 1593 1107f1dbcc78
child 1595 faabd13245ca
OS/2: Fixed NULL pointer dereference.
src/physfs_platform_os2.c
--- a/src/physfs_platform_os2.c	Sun Aug 20 00:35:25 2017 -0400
+++ b/src/physfs_platform_os2.c	Sun Aug 20 01:18:05 2017 -0400
@@ -203,7 +203,7 @@
                 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);