kill: Parse multi-digit signal numbers correctly

This commit is contained in:
Tim Ledbetter 2023-05-30 18:12:03 +01:00 committed by Jelle Raaijmakers
parent 78fbe28070
commit f0edf00dc0
Notes: sideshowbarker 2024-07-16 23:52:10 +09:00

View file

@ -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]);