aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-01-19 21:37:16 +0100
committerLasse Collin <lasse.collin@tukaani.org>2009-01-26 20:01:51 +0200
commit850f7400428dc9c5fd08a2f35a5bd2c9e45aede2 (patch)
tree14a0142d5d5b37c860dffc5d6a11100100aa79b9 /extra
parentAdd lzma_block_buffer_decode(). (diff)
downloadxz-850f7400428dc9c5fd08a2f35a5bd2c9e45aede2.tar.xz
remove trailing blanks from all but .xz files
Diffstat (limited to 'extra')
-rw-r--r--extra/scanlzma/scanlzma.c5
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++;