Fix bug #3201 "Fix memory corruption in sc_html_read_line()"