From 81f89fe4ca0de8b4d8fa7be4df127268def7c097 Mon Sep 17 00:00:00 2001 From: Carlo Alberto Ferraris Date: Mon, 5 Dec 2011 15:23:54 +0100 Subject: [PATCH] silly cosmetic change --- lrzip.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lrzip.c b/lrzip.c index 675b937..5d9b96e 100644 --- a/lrzip.c +++ b/lrzip.c @@ -71,12 +71,9 @@ static i64 fdout_seekto(rzip_control *control, i64 pos) 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; + char magic[MAGIC_LEN] = { + 'L', 'R', 'Z', 'I', LRZIP_MAJOR_VERSION, LRZIP_MINOR_VERSION + }; /* File size is stored as zero for streaming STDOUT blocks when the * file size is unknown. In encrypted files, the size is left unknown