From e52ea779e7bc3e342b22c1e577651f9efe83fea1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 14 Jan 2017 09:47:04 +0100 Subject: blind-split: fix error check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-split.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2