From a460c4aa148a9d563519b2d20cc5b193c516de98 Mon Sep 17 00:00:00 2001 From: Trammell hudson Date: Fri, 26 Jan 2018 15:56:25 -0500 Subject: [PATCH] fix sense of end_offset test --- bin/extract-firmware | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/extract-firmware b/bin/extract-firmware index d578e7b..c449ff1 100755 --- a/bin/extract-firmware +++ b/bin/extract-firmware @@ -59,7 +59,7 @@ sub process_region # Adjust the end offset if they ask for too much $end_offset = $length - 0x30 - unless (defined $end_offset || $end_offset > $length - 0x30); + if !defined $end_offset or $end_offset > $length - 0x30; for(my $offset = $start_offset ; $offset < $end_offset ; $offset += $step) {