]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
ar.c (do_oper_delete): Fix num passed to memset.
authorDavid Abdurachmanov <David.Abdurachmanov@cern.ch>
Sun, 13 Jan 2013 15:44:21 +0000 (16:44 +0100)
committerMark Wielaard <mjw@redhat.com>
Sun, 13 Jan 2013 19:55:00 +0000 (20:55 +0100)
Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
src/ChangeLog
src/ar.c

index 404ef0bf95b3783915c26e6ffc09fb3a3ca8d702..11a9cb51fa05fa6189f867251a631caae98e0ed0 100644 (file)
@@ -1,3 +1,7 @@
+2013-01-13  David Abdurachmanov  <David.Abdurachmanov@cern.ch>
+
+       ar.c (do_oper_delete): Fix num passed to memset.
+
 2012-12-21  Mark Wielaard  <mjw@redhat.com>
 
        * readelf.c (print_debug_frame_section): Adjust FDE start address
index 03da1b77fcd9066b4aa6771bcc86e011fd114eba..2d6ad60c5b2b63770865f041b161f4060dbcb2b7 100644 (file)
--- a/src/ar.c
+++ b/src/ar.c
@@ -919,7 +919,7 @@ do_oper_delete (const char *arfname, char **argv, int argc,
                long int instance)
 {
   bool *found = alloca (sizeof (bool) * argc);
-  memset (found, '\0', sizeof (found));
+  memset (found, '\0', sizeof (bool) * argc);
 
   /* List of the files we keep.  */
   struct armem *to_copy = NULL;