diff --git a/miniz_zip.c b/miniz_zip.c index 24867d7..b5832ce 100644 --- a/miniz_zip.c +++ b/miniz_zip.c @@ -3101,13 +3101,7 @@ static mz_bool mz_zip_writer_validate_archive_name(const char *pArchive_name) if (*pArchive_name == '/') return MZ_FALSE; - while (*pArchive_name) - { - if ((*pArchive_name == '\\') || (*pArchive_name == ':')) - return MZ_FALSE; - - pArchive_name++; - } + /* Making sure the name does not contain drive letters or DOS style backward slashes is the responsibility of the program using miniz*/ return MZ_TRUE; }