diff options
Diffstat (limited to 'procps/kill.c')
-rw-r--r-- | procps/kill.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/procps/kill.c b/procps/kill.c index e6f27af50..599152250 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -221,6 +221,7 @@ int kill_main(int argc, char **argv) | |||
221 | pid = bb_strtoi(arg, &end, 10); | 221 | pid = bb_strtoi(arg, &end, 10); |
222 | if (errno && (errno != EINVAL || *end != ' ')) { | 222 | if (errno && (errno != EINVAL || *end != ' ')) { |
223 | bb_error_msg("invalid number '%s'", arg); | 223 | bb_error_msg("invalid number '%s'", arg); |
224 | *end = '\0'; | ||
224 | errors++; | 225 | errors++; |
225 | } else if (kill(pid, signo) != 0) { | 226 | } else if (kill(pid, signo) != 0) { |
226 | bb_perror_msg("can't kill pid %d", (int)pid); | 227 | bb_perror_msg("can't kill pid %d", (int)pid); |