diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-14 09:47:04 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-14 09:47:04 +0100 |
| commit | e52ea779e7bc3e342b22c1e577651f9efe83fea1 (patch) | |
| tree | c581dc5c6e620a028f17e89e95fea4125cb8bdf9 | |
| parent | m (diff) | |
| download | blind-e52ea779e7bc3e342b22c1e577651f9efe83fea1.tar.gz blind-e52ea779e7bc3e342b22c1e577651f9efe83fea1.tar.bz2 blind-e52ea779e7bc3e342b22c1e577651f9efe83fea1.tar.xz | |
blind-split: fix error check
Signed-off-by: Mattias Andrée <maandree@kth.se>
| -rw-r--r-- | src/blind-split.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blind-split.c b/src/blind-split.c index 038b3b6..90dee19 100644 --- a/src/blind-split.c +++ b/src/blind-split.c @@ -79,7 +79,7 @@ main(int argc, char *argv[]) stream.ptr = 0; } else if (ptr % frame_size) { eprintf("%s: incomplete frame\n", stream.file); - } else if (!unknown_length) { + } else if (!unknown_length || !to_end[i]) { eprintf("%s: file is shorter than expected\n", stream.file); } else { break; |
