From 57fe8700deae2750ff28de5ee3906649cb034dd4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 19 Nov 2007 21:19:36 +0100 Subject: [PATCH] Fix incorrect sizeof in a memset call --- ChangeLog | 5 +++++ src/processarc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; } } -- 2.39.5