Fix a call to memset(3) with reversed arguments.

Bug: 1999244
This commit is contained in:
Elliott Hughes 2009-09-03 11:52:31 -07:00
parent e991decf34
commit 90764cfc76
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ read_central_dir(Zipfile *file)
len = (buf+bufsize)-p;
for (i=0; i < file->totalEntryCount; i++) {
Zipentry* entry = malloc(sizeof(Zipentry));
memset(entry, sizeof(Zipentry), 0);
memset(entry, 0, sizeof(Zipentry));
err = read_central_directory_entry(file, entry, &p, &len);
if (err != 0) {