mirror of
https://github.com/open-goal/jak-project
synced 2026-08-18 05:48:28 -04:00
fix zip library bugs (#508)
This commit is contained in:
Vendored
+3
-2
@@ -2,6 +2,7 @@
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
#include <ctime>
|
||||
#include <cstring>
|
||||
|
||||
#include <minizip/zlib.h>
|
||||
|
||||
@@ -74,7 +75,8 @@ namespace ziputils
|
||||
}
|
||||
|
||||
//?? we dont need the stinking time
|
||||
zip_fileinfo zi = {0};
|
||||
zip_fileinfo zi;
|
||||
memset(&zi, 0, sizeof(zi));
|
||||
getTime(zi.tmz_date);
|
||||
|
||||
int err = zipOpenNewFileInZip(zipFile_, filename, &zi,
|
||||
@@ -109,7 +111,6 @@ namespace ziputils
|
||||
{
|
||||
int err = ZIP_OK;
|
||||
char buf[BUFSIZE];
|
||||
unsigned long nRead = 0;
|
||||
|
||||
if (isOpenEntry())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user