Skip to content

Commit

Permalink
Fix a call to memset(3) with reversed arguments.
Browse files Browse the repository at this point in the history
Bug: 1999244
  • Loading branch information
enh-google committed Sep 3, 2009
1 parent e991dec commit 90764cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libzipfile/centraldir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 90764cf

Please sign in to comment.