From c47fa6d06745bb2e99866e76b81ac7a9c5a8bfec Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 29 Apr 2018 18:48:00 +0300 Subject: [PATCH] extra/scanlzma: Fix compiler warnings. --- extra/scanlzma/scanlzma.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extra/scanlzma/scanlzma.c b/extra/scanlzma/scanlzma.c index 5c3b25be..110f822b 100644 --- a/extra/scanlzma/scanlzma.c +++ b/extra/scanlzma/scanlzma.c @@ -37,6 +37,10 @@ /* 5 8 Uncompressed size (little endian). -1 means unknown size */ /* 13 Compressed data */ +#include +#include +#include + #define BUFSIZE 4096 int find_lzma_header(unsigned char *buf) { @@ -48,7 +52,7 @@ int find_lzma_header(unsigned char *buf) { } int main(int argc, char *argv[]) { - char buf[BUFSIZE]; + unsigned char buf[BUFSIZE]; int ret, i, numlzma, blocks=0; if (argc != 2) {