From 9c4b9c62e16e5b4645279620c34df6be9d330ac3 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 16 Jan 2025 16:08:17 +0100 Subject: [PATCH] Fix typo in error message --- Build/Apkv3.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/Apkv3.pm b/Build/Apkv3.pm index 7d756a5f..00d7be8e 100644 --- a/Build/Apkv3.pm +++ b/Build/Apkv3.pm @@ -375,7 +375,7 @@ sub verifydatasection { my $ctx; $ctx = Digest::SHA->new(256) if length($file->{'hash'}) == 32; $ctx = Digest::SHA->new(512) if length($file->{'hash'}) == 64; - die("unsupported file hashn") unless $file->{'hash'}; + die("unsupported file hash\n") unless $ctx; my ($datatype, $datasize, $datapad) = read_blk_header($fd); die("missing data block\n") unless $datatype == 2; die("data size mismatch\n") unless $datasize == 8 + $file->{'size'};