diff options
Diffstat (limited to 'libsylph/html.c')
-rw-r--r-- | libsylph/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsylph/html.c b/libsylph/html.c index 9241793c..a86c07b0 100644 --- a/libsylph/html.c +++ b/libsylph/html.c @@ -770,7 +770,7 @@ static gchar *html_unescape_str(HTMLParser *parser, const gchar *str) gint len; len = g_unichar_to_utf8((gunichar)ch, buf); - if (len > 0 && len <= n + 1) { + if (len > 0 && len <= 6 && len <= n + 1) { memcpy(up, buf, len); up += len; } else { |