From ab8d5f6df3171197a7d3913bdf2195bca90fe6de Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 22 Feb 2010 16:03:15 -0500 Subject: [PATCH] Ensure proper alignment of NullPool Bug 593240 - (pangoosx) Crash / infinite loop with Mac OS X --- pango/opentype/hb-open-type-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pango/opentype/hb-open-type-private.hh b/pango/opentype/hb-open-type-private.hh index 65e4950..f460f1a 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 -- 2.7.4