Commit replaces atoi() call with str2int() and puts a limit on accepted values for Component ID to <0..7>.