commit | 90764cfc76d65ae67755a375eb8ef429e44b9822 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Sep 03 11:52:31 2009 -0700 |
committer | Elliott Hughes <enh@google.com> | Thu Sep 03 11:52:31 2009 -0700 |
tree | 13700792743839ccb17648f2478e6f0e03d236a0 | |
parent | e991decf340e24203ed63f87d9313598cd09a46c [diff] |
Fix a call to memset(3) with reversed arguments. Bug: 1999244
diff --git a/libzipfile/centraldir.c b/libzipfile/centraldir.c index 0391c09..0e264a3 100644 --- a/libzipfile/centraldir.c +++ b/libzipfile/centraldir.c
@@ -233,7 +233,7 @@ 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) {