diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-11-25 10:16:56 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-11-25 10:16:56 +0200 |
commit | 115d16e64b315dbc1eff7f9da86faaad55d90c3b (patch) | |
tree | a24807739d739808613cdb69cb73746d6fbc1526 /linux | |
parent | ac313daaa9608cdd6a74ae63dbfd8222860f0120 (diff) | |
download | xz-embedded-115d16e64b315dbc1eff7f9da86faaad55d90c3b.tar.gz |
Comment and coding style fixes.
Thanks to Phillip Lougher.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/lib/decompress_unxz.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/lib/decompress_unxz.c b/linux/lib/decompress_unxz.c index 537d39e..a7954bc 100644 --- a/linux/lib/decompress_unxz.c +++ b/linux/lib/decompress_unxz.c @@ -1,5 +1,5 @@ /* - * XZ decoder as a single file for uncompressing the kernel and initramfs + * Single-file XZ decompressor for decompressing the kernel and initramfs * * Author: Lasse Collin <lasse.collin@tukaani.org> * @@ -193,6 +193,7 @@ static void memzero(void *buf, size_t size) { uint8_t *b = buf; uint8_t *e = b + size; + while (b != e) *b++ = '\0'; } |