From 477eac8775ca02fd9e4f1af8230129e909e82ce7 Mon Sep 17 00:00:00 2001 From: Reinhard Prix Date: Mon, 15 Jan 2007 23:27:01 +0000 Subject: [PATCH] fix bug in boinc_UnzipToMemory(): properly init buffer to zero svn path=/trunk/boinc/; revision=11874 --- zip/boinc_zip.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zip/boinc_zip.cpp b/zip/boinc_zip.cpp index 4d82c60d03..c7ba2baaf6 100644 --- a/zip/boinc_zip.cpp +++ b/zip/boinc_zip.cpp @@ -318,7 +318,8 @@ boinc_UnzipToMemory ( char *zip, char *file, string &retstr ) funcs.inputfn = (InputFn *)scanf; 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 )