Fix incorrect charset conversion in sc_html_read_line().
When converting from single-byte to multi-byte encoding, the resulting string can sometimes have more bytes than the original.
This commit is contained in:
parent
516496ca12
commit
2ceb0d43d3
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ gchar *sc_html_parse(SC_HTMLParser *parser)
|
|||
static SC_HTMLState sc_html_read_line(SC_HTMLParser *parser)
|
||||
{
|
||||
gchar buf[SC_HTMLBUFSIZE];
|
||||
gchar buf2[SC_HTMLBUFSIZE];
|
||||
gchar buf2[SC_HTMLBUFSIZE*4];
|
||||
gint index;
|
||||
gint n;
|
||||
|
||||
|
|
Loading…
Reference in a new issue