Cut&pasted code got the cut before the off-by-one fix.