diff --git a/CHANGELOG b/CHANGELOG index 184d090..86e1f8f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ * CHANGELOG. */ +07232005 - Fixed bug in zip archiver (thanks, Jörg Walter!). 07212005 - Patched to compile on OS/2 again. 07132005 - Updated zlib to 1.2.2, and patched it for this security hole: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2096 diff --git a/CREDITS b/CREDITS index cd9cade..81931fd 100644 --- a/CREDITS +++ b/CREDITS @@ -87,6 +87,9 @@ MPW support: Mingw support: Matze Braun +Bug fixes: + Jörg Walter + Other stuff: Your name here! Patches go to icculus@clutteredmind.org ... diff --git a/archivers/zip.c b/archivers/zip.c index 85ea3c6..6902efe 100644 --- a/archivers/zip.c +++ b/archivers/zip.c @@ -1146,9 +1146,9 @@ static PHYSFS_sint32 zip_find_start_of_dir(ZIPinfo *info, const char *path, if (rc == 0) { char ch = name[dlen]; - if (ch < '/') /* make sure this isn't just a substr match. */ + if ('/' < ch) /* make sure this isn't just a substr match. */ rc = -1; - else if (ch > '/') + else if ('/' > ch) rc = 1; else {