summaryrefslogtreecommitdiffstats
path: root/src/ar.c
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/ar.c
parent3f9256d1845af7e7119654f5febc099df5b57984 (diff)
ar.c (do_oper_delete): Fix num passed to memset.
Signed-off-by: David Abdurachmanov <[email protected]>
Diffstat (limited to 'src/ar.c')
-rw-r--r--src/ar.c2
1 files changed, 1 insertions, 1 deletions
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;