mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
kill: Parse multi-digit signal numbers correctly
This commit is contained in:
committed by
Jelle Raaijmakers
parent
78fbe28070
commit
f0edf00dc0
@@ -61,7 +61,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
}
|
||||
|
||||
if (!number.has_value())
|
||||
number = strings[1].substring_view(1, 1).to_uint();
|
||||
number = strings[1].substring_view(1).to_uint();
|
||||
|
||||
if (!number.has_value()) {
|
||||
warnln("'{}' is not a valid signal name or number", &strings[1][1]);
|
||||
|
||||
Reference in New Issue
Block a user