SystemTools: Fix off-by-one in GetLineFromStream

This is required for fixing cmake/cmake#16492 (closed)

Merge request reports

Loading