Changed calculation of the length of the string returned in the line sub-table in RenderLines() to ensure it ends with a null character.