Skip to content
Browse files

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

Bug: 1999244
  • Loading branch information...
1 parent e991dec commit 90764cfc76d65ae67755a375eb8ef429e44b9822 @enh enh committed Sep 3, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 libzipfile/centraldir.c
View
2 libzipfile/centraldir.c
@@ -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) {

0 comments on commit 90764cf

Please sign in to comment.
Something went wrong with that request. Please try again.