mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
kill: Parse multi-digit signal numbers correctly
This commit is contained in:
parent
78fbe28070
commit
f0edf00dc0
Notes:
sideshowbarker
2024-07-16 23:52:10 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/f0edf00dc0 Pull-request: https://github.com/SerenityOS/serenity/pull/19156 Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue