Use correct size in memset
We were using the size of a pointer, not the size of the whole archive_read_buffer struct. Thanks to Clang/LLVM 3.0 and Allan/Dave in IRC for finding this one. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
17e0be9e6a
commit
6a1d3948a6
1 changed files with 1 additions and 1 deletions
|
@ -1000,7 +1000,7 @@ cleanup:
|
|||
{
|
||||
int ret = b->ret;
|
||||
FREE(b->line);
|
||||
memset(b, 0, sizeof(b));
|
||||
memset(b, 0, sizeof(struct archive_read_buffer));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue