diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-07-28 15:50:42 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-07-28 15:50:42 -0400 |
commit | 603479e35c849285078238275510c0c89170ff9d (patch) | |
tree | 51f41365305da61cd18443da9d67607bc2e2f347 /pango/opentype/hb-buffer.c | |
parent | 59f8868cf32691cce37060b30c3d16503a003df7 (diff) | |
download | pango-603479e35c849285078238275510c0c89170ff9d.tar.gz |
[HB] Fix buffer enlargement. Ouch
Diffstat (limited to 'pango/opentype/hb-buffer.c')
-rw-r--r-- | pango/opentype/hb-buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/opentype/hb-buffer.c b/pango/opentype/hb-buffer.c index 31b6c0fb..d2ec33dc 100644 --- a/pango/opentype/hb-buffer.c +++ b/pango/opentype/hb-buffer.c @@ -244,7 +244,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer, unsigned int properties; unsigned int cluster; - if (buffer->out_string == buffer->in_string && + if (buffer->out_string != buffer->in_string || buffer->out_pos + num_out > buffer->in_pos + num_in) { hb_buffer_ensure_separate (buffer, buffer->out_pos + num_out); |