aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-01-14 09:47:04 +0100
committerMattias Andrée <maandree@kth.se>2017-01-14 09:47:04 +0100
commite52ea779e7bc3e342b22c1e577651f9efe83fea1 (patch)
treec581dc5c6e620a028f17e89e95fea4125cb8bdf9 /src
parentm (diff)
downloadblind-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>
Diffstat (limited to 'src')
-rw-r--r--src/blind-split.c2
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;