win32: recent roms bugs: [2595745] [2598258]

This commit is contained in:
zeromus 2009-04-08 04:27:46 +00:00
parent 907851c822
commit 475b4a77b2
1 changed files with 2 additions and 0 deletions

View File

@ -195,6 +195,8 @@ void * ZIPROMReaderInit(const char * filename)
{ {
char tmp1[1024]; char tmp1[1024];
char tmp2[1024]; char tmp2[1024];
memset(tmp1,0,sizeof(tmp1));
memset(tmp2,0,sizeof(tmp2));
strncpy(tmp1, filename, strlen(filename) - 4); strncpy(tmp1, filename, strlen(filename) - 4);
sprintf(tmp2, "%s/%s", tmp1, dirent->d_name); sprintf(tmp2, "%s/%s", tmp1, dirent->d_name);
return zzip_fopen(tmp2, "rb"); return zzip_fopen(tmp2, "rb");