Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

silly cosmetic change #7

Merged
merged 1 commit into from

3 participants

@CAFxX

No description provided.

@haneefmubarak

Cleaning up how code looks is never silly. If @ckolivas ever comes back, I hope he merges this.

@ckolivas ckolivas merged commit 66cf21d into from
@haneefmubarak

Yay! @ckolivas is back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 5, 2011
  1. @CAFxX

    silly cosmetic change

    CAFxX authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 6 deletions.
  1. +3 −6 lrzip.c
View
9 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
Something went wrong with that request. Please try again.