fix bug in boinc_UnzipToMemory(): properly init buffer to zero

svn path=/trunk/boinc/; revision=11874
This commit is contained in:
Reinhard Prix 2007-01-15 23:27:01 +00:00
parent 8c99b4055e
commit 477eac8775
1 changed files with 2 additions and 1 deletions

View File

@ -319,6 +319,7 @@ boinc_UnzipToMemory ( char *zip, char *file, string &retstr )
funcs.pausefn = (PauseFn *)( 0x01 );
funcs.passwdfn = (PasswdFn *)( NULL );
memset( &buf, 0, sizeof(buf) ); // data-blocks needs to be empty
ret = UzpUnzipToMemory( zip, file, &opts, &funcs, &buf );
if ( ret )