Fix an off-by-one error in my recent rework of SplitProcLine()

Also tidy up a bit and improve commentary.