mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01: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
lrzip.c
1
lrzip.c
|
|
@ -65,6 +65,7 @@ void write_magic(rzip_control *control)
|
||||||
{
|
{
|
||||||
char magic[MAGIC_LEN];
|
char magic[MAGIC_LEN];
|
||||||
|
|
||||||
|
memset(magic, 0, MAGIC_LEN);
|
||||||
strcpy(magic, "LRZI");
|
strcpy(magic, "LRZI");
|
||||||
magic[4] = LRZIP_MAJOR_VERSION;
|
magic[4] = LRZIP_MAJOR_VERSION;
|
||||||
magic[5] = LRZIP_MINOR_VERSION;
|
magic[5] = LRZIP_MINOR_VERSION;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue