diff options
Diffstat (limited to 'extra/scanlzma/scanlzma.c')
-rw-r--r-- | extra/scanlzma/scanlzma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/extra/scanlzma/scanlzma.c b/extra/scanlzma/scanlzma.c index 3612f9df..5c3b25be 100644 --- a/extra/scanlzma/scanlzma.c +++ b/extra/scanlzma/scanlzma.c @@ -64,11 +64,11 @@ int main(int argc, char *argv[]) { ret = fread(buf, BUFSIZE, 1, stdin); if (ret != 1) break; - + /* Scan for signature. */ for (i = 0; i<BUFSIZE-23; i++) { if (find_lzma_header(buf+i) && numlzma-- <= 0) { - fwrite(buf+i, (BUFSIZE-i), 1, stdout); + fwrite(buf+i, (BUFSIZE-i), 1, stdout); for (;;) { int ch; ch = getchar(); @@ -76,7 +76,6 @@ int main(int argc, char *argv[]) { exit(0); putchar(ch); } - } } blocks++; |