summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2010-02-22 16:03:15 -0500
committerBehdad Esfahbod <behdad@behdad.org>2010-02-22 16:03:15 -0500
commitab8d5f6df3171197a7d3913bdf2195bca90fe6de (patch)
treee2500d110ef084cddcdadedd91e583dfe43cae8d
parentaae6aab95ce876f52c266bddb2b200344f8020bb (diff)
downloadpango-ab8d5f6df3171197a7d3913bdf2195bca90fe6de.tar.gz
Ensure proper alignment of NullPool
Bug 593240 - (pangoosx) Crash / infinite loop with Mac OS X
-rw-r--r--pango/opentype/hb-open-type-private.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/opentype/hb-open-type-private.hh b/pango/opentype/hb-open-type-private.hh
index 65e4950f..f460f1a2 100644
--- a/pango/opentype/hb-open-type-private.hh
+++ b/pango/opentype/hb-open-type-private.hh
@@ -61,7 +61,7 @@
/* Null objects */
/* Global nul-content Null pool. Enlarge as necessary. */
-static const char NullPool[32] = "";
+static const void *NullPool[32 / sizeof (void *)];
/* Generic template for nul-content sizeof-sized Null objects. */
template <typename Type>