Explorar el Código

Fix incorrect sizeof in a memset call

Ian Jackson hace 18 años
padre
commit
57fe8700de
Se han modificado 2 ficheros con 6 adiciones y 1 borrados
  1. 5 0
      ChangeLog
  2. 1 1
      src/processarc.c

+ 5 - 0
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

+ 1 - 1
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;
 	  }
 	}