checkstack.pl: fix arch autodetection
chomp trailing newlines Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
parent
94e748d027
commit
fe7ae562e5
@ -32,6 +32,7 @@ my (@stack, $re, $x, $xs);
|
|||||||
my $arch = shift;
|
my $arch = shift;
|
||||||
if ($arch eq "") {
|
if ($arch eq "") {
|
||||||
$arch = `uname -m`;
|
$arch = `uname -m`;
|
||||||
|
1 while chomp $arch;
|
||||||
}
|
}
|
||||||
|
|
||||||
$x = "[0-9a-f]"; # hex character
|
$x = "[0-9a-f]"; # hex character
|
||||||
|
Loading…
Reference in New Issue
Block a user