Fix off-by-one buffer size error (detected by PC-lint)