From: Ian Jackson Date: Mon, 19 Nov 2007 20:19:36 +0000 (+0100) Subject: Fix incorrect sizeof in a memset call X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57fe8700deae2750ff28de5ee3906649cb034dd4;p=dpkg Fix incorrect sizeof in a memset call --- diff --git a/ChangeLog b/ChangeLog index 7fa3d489..8877daa9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-21 Ian Jackson + + * src/processarc.c (process_archive): Fix incorrect sizeof in a + memset call. + 2008-01-21 Guillem Jover * utils/start-stop-daemon.c (main): Cast runas_uid and runas_gid to diff --git a/src/processarc.c b/src/processarc.c index 15504144..aeeba77c 100644 --- a/src/processarc.c +++ b/src/processarc.c @@ -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; } }