diff options
author | Yann Collet <cyan@fb.com> | 2019-04-12 22:17:48 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-04-12 22:17:48 (GMT) |
commit | e865a3e7ec36ca812d8ebb920796732eaceb5135 (patch) | |
tree | 4bd9ecfe987ac07006ac38d80b3e157ea2036d10 /programs/lz4cli.c | |
parent | 2de183c92ad5dfe227f778dd5e727ef6995e09af (diff) | |
download | lz4-e865a3e7ec36ca812d8ebb920796732eaceb5135.zip lz4-e865a3e7ec36ca812d8ebb920796732eaceb5135.tar.gz lz4-e865a3e7ec36ca812d8ebb920796732eaceb5135.tar.bz2 |
fixed lz4 -m -c
can compress multiple files into stdout
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r-- | programs/lz4cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c index 9a7aeb4..8bd7042 100644 --- a/programs/lz4cli.c +++ b/programs/lz4cli.c @@ -711,7 +711,7 @@ int main(int argc, const char** argv) LZ4IO_compressFilename_Legacy(prefs, input_filename, output_filename, cLevel); } else { if (multiple_inputs) - operationResult = LZ4IO_compressMultipleFilenames(prefs, inFileNames, ifnIdx, LZ4_EXTENSION, cLevel); + operationResult = LZ4IO_compressMultipleFilenames(prefs, inFileNames, ifnIdx, !strcmp(output_filename,stdoutmark) ? stdoutmark : LZ4_EXTENSION, cLevel); else operationResult = DEFAULT_COMPRESSOR(prefs, input_filename, output_filename, cLevel); } |