Signed-off-by: David Abdurachmanov <David.Abdurachmanov(a)cern.ch>
---
src/ar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/ar.c b/src/ar.c
index 03da1b7..2d6ad60 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;
--
1.7.4.1
Show replies by date