Fix hb_buffer_append()

Ouch!
This commit is contained in:
Behdad Esfahbod 2017-08-11 19:31:05 -07:00
parent 1c17c2bde5
commit 6ce25f57c6
1 changed files with 1 additions and 1 deletions

View File

@ -1730,7 +1730,7 @@ hb_buffer_append (hb_buffer_t *buffer,
if (!buffer->len)
buffer->content_type = source->content_type;
if (buffer->len + (end - start) > buffer->len) /* Overflows. */
if (buffer->len + (end - start) < buffer->len) /* Overflows. */
{
buffer->in_error = true;
return;