From c04432ba467f7f957835b7264157951787e27f4c Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 23 Apr 2014 08:55:17 -0700 Subject: [PATCH] don't go past end of @msg when setting --- scripts/process | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/process b/scripts/process index 516bd31..bceb69c 100755 --- a/scripts/process +++ b/scripts/process @@ -248,7 +248,7 @@ for my $key (grep /X-Debbugs-.*/i, keys %pheader) { # set $i to beginning of encoded body data, so we can dump it out # verbatim later my $i = 0; -++$i while $msg[$i] =~ /./; +++$i while $i <= $#msg and $msg[$i] =~ /./; $fwd .= join("\n",@msg[$i..$#msg]); binmode($debugfh,':raw'); -- 2.39.2