From: Bernhard Reutner-Fischer Date: Thu, 17 Jan 2019 20:53:53 +0000 (+0100) Subject: checkstack.pl: fix arch autodetection X-Git-Tag: 1_31_0~206 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fe7ae562e5d0121d1c5f4d3ba1ec4117c7bbaab8;p=oweals%2Fbusybox.git checkstack.pl: fix arch autodetection chomp trailing newlines Signed-off-by: Bernhard Reutner-Fischer --- diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index 55cdd78c1..b5980a2e3 100755 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl @@ -32,6 +32,7 @@ my (@stack, $re, $x, $xs); my $arch = shift; if ($arch eq "") { $arch = `uname -m`; + 1 while chomp $arch; } $x = "[0-9a-f]"; # hex character