diff options
Diffstat (limited to 'linux/lib')
-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'; } |