]> err.no Git - dpkg/commitdiff
Fix incorrect sizeof in a memset call
authorIan Jackson <ian@davenant.greenend.org.uk>
Mon, 19 Nov 2007 20:19:36 +0000 (21:19 +0100)
committerGuillem Jover <guillem@debian.org>
Mon, 21 Jan 2008 05:06:05 +0000 (07:06 +0200)
ChangeLog
src/processarc.c

index 7fa3d489650b1d943c14f4bcd159a0e83aae7a4c..8877daa9451c66db274a4c819e15afba52d0f290 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-21  Ian Jackson  <ian@davenant.greenend.org.uk>
+
+       * src/processarc.c (process_archive): Fix incorrect sizeof in a
+       memset call.
+
 2008-01-21  Guillem Jover  <guillem@debian.org>
 
        * utils/start-stop-daemon.c (main): Cast runas_uid and runas_gid to
index 1550414437e25ed6360f06b44cd5b9eed70eb530..aeeba77c993e9626ec6c6d184a98405c02c3ccf3 100644 (file)
@@ -675,7 +675,7 @@ void process_archive(const char *filename) {
              ohshite(_("unable to stat other new file `%.250s'"),
                      cfile->namenode->name);
            memset(cfile->namenode->filestat, 0,
-                  sizeof(cfile->namenode->filestat));
+                  sizeof(*cfile->namenode->filestat));
            continue;
          }
        }