summaryrefslogtreecommitdiff
path: root/src/hb-buffer-private.hh
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-07-18 15:43:55 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-07-18 15:43:55 -0400
commitd16ccc4ae7aa8be460881042413fa2637929fede (patch)
treeb4c9eb4543ea880cc0f0842284dbd316128189d7 /src/hb-buffer-private.hh
parent075d671f1093d2e3c58f7f45568696030f1b3efd (diff)
Leave one extra item at the end of buffer allocation
Just in case, for the times we do out-of-bounds access. jk
Diffstat (limited to 'src/hb-buffer-private.hh')
-rw-r--r--src/hb-buffer-private.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-buffer-private.hh b/src/hb-buffer-private.hh
index 9bd80e0f..e06a7fa3 100644
--- a/src/hb-buffer-private.hh
+++ b/src/hb-buffer-private.hh
@@ -148,7 +148,7 @@ struct hb_buffer_t {
HB_INTERNAL bool enlarge (unsigned int size);
inline bool ensure (unsigned int size)
- { return likely (size <= allocated) ? true : enlarge (size); }
+ { return likely (size < allocated) ? true : enlarge (size); }
HB_INTERNAL bool make_room_for (unsigned int num_in, unsigned int num_out);