summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Abdurachmanov <[email protected]>2013-01-13 16:44:21 +0100
committerMark Wielaard <[email protected]>2013-01-13 20:55:00 +0100
commit1a4d0668d18bf1090c5c08cdb5cb3ba2b8eb5410 (patch)
tree5229e0106aaacb7900b3c058efde3dfd88f1b624 /src
parent3f9256d1845af7e7119654f5febc099df5b57984 (diff)
ar.c (do_oper_delete): Fix num passed to memset.
Signed-off-by: David Abdurachmanov <[email protected]>
Diffstat (limited to 'src')
-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;