Fix stupid off-by-one conditional in length check.