diff --git a/CHANGELOG b/CHANGELOG index 0145155..7536446 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,7 @@ -- stuff in the stable-1.0 branch, backported from 2.0.0 dev branch, etc --- +07232005 - Fixed bug in zip archiver (thanks, Jörg Walter!). 07132005 - Moved to zlib122, and security fix discussed here: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2096 06122005 - Added support for mingw to Unix build process (thanks, Matze!). diff --git a/CREDITS b/CREDITS index 9beb45a..990a2fe 100644 --- a/CREDITS +++ b/CREDITS @@ -76,6 +76,9 @@ Spanish translation: 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 5cc2f7e..2ace62c 100644 --- a/archivers/zip.c +++ b/archivers/zip.c @@ -1208,9 +1208,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 {