--- bin/svn/mojosetup/fileio.c 2009-02-05 13:30:17.000000000 +0100 +++ Documents/Programmieren/eclipse-c++/mojosetup/fileio.c 2009-02-26 12:14:30.000000000 +0100 @@ -42,21 +42,21 @@ MojoArchive *MojoArchive_newFromInput(Mo { ext = strchr(origfname, '/'); if (ext == NULL) - ext = strchr(origfname, '.'); + ext = origfname; else - ext = strchr(ext+1, '.'); + ext++; } // if - if (ext != NULL) + while( (ext = strchr(ext,'.')) != NULL) { - // Try for an exact match. - ext++; // skip that '.' - for (i = 0; i < STATICARRAYLEN(archives); i++) - { - if (strcasecmp(ext, archives[i].ext) == 0) - return archives[i].create(io); + // Try for an exact match. + ext++; // skip that '.' + for (i = 0; i < STATICARRAYLEN(archives); i++) + { + if (strcasecmp(ext, archives[i].ext) == 0) + return archives[i].create(io); } // for - } // if + } // while // Try them all... for (i = 0; i < STATICARRAYLEN(archives); i++)