diff options
| author | David Abdurachmanov <[email protected]> | 2013-01-13 16:44:21 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2013-01-13 20:55:00 +0100 |
| commit | 1a4d0668d18bf1090c5c08cdb5cb3ba2b8eb5410 (patch) | |
| tree | 5229e0106aaacb7900b3c058efde3dfd88f1b624 /src | |
| parent | 3f9256d1845af7e7119654f5febc099df5b57984 (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/ChangeLog | 4 | ||||
| -rw-r--r-- | src/ar.c | 2 |
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 @@ -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; |
