mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-21 06:03:54 +00:00
Need to memset magic to zero to prevent garbage beign written to fields not written.
This commit is contained in:
parent
1b05ad0750
commit
b11b5a0b5d
1 changed files with 1 additions and 0 deletions
1
lrzip.c
1
lrzip.c
|
|
@ -65,6 +65,7 @@ void write_magic(rzip_control *control)
|
|||
{
|
||||
char magic[MAGIC_LEN];
|
||||
|
||||
memset(magic, 0, MAGIC_LEN);
|
||||
strcpy(magic, "LRZI");
|
||||
magic[4] = LRZIP_MAJOR_VERSION;
|
||||
magic[5] = LRZIP_MINOR_VERSION;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue