summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog4
-rw-r--r--src/ar.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 404ef0bf..11a9cb51 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2013-01-13 David Abdurachmanov <[email protected]>
+
+ ar.c (do_oper_delete): Fix num passed to memset.
+
2012-12-21 Mark Wielaard <[email protected]>
* readelf.c (print_debug_frame_section): Adjust FDE start address
diff --git a/src/ar.c b/src/ar.c
index 03da1b77..2d6ad60c 100644
--- 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;