Skip to content

kill: Fix argument handling for negative PIDs

Raphaël Jakse requested to merge (removed):patch-1 into master

When passing a negative PID to the kill program, getopt() returns a question mark ?. The next character is checked. If it is a digit, atoi is called.

This commit fixes the index of the argument being passed to atoi, which is currently off by one.

Should fix #65 (closed).

Merge request reports