Fix off-by-one error in signal number check.