Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #7 from CAFxX/patch-1

silly cosmetic change
  • Loading branch information...
commit 66cf21db3a5172ea7f3c6ce6f83c7bc7dae6325f 2 parents 8244513 + 81f89fe
@ckolivas authored
Showing with 3 additions and 6 deletions.
  1. +3 −6 lrzip.c
View
9 lrzip.c
@@ -136,12 +136,9 @@ i64 nloops(i64 seconds, uchar *b1, uchar *b2)
bool 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
Please sign in to comment.
Something went wrong with that request. Please try again.