Checkbufferoverrun: improved constness of local variables, no functional changes.