gtk-demo: Fix an off-by-one error

This was found by the asan build in our ci.
This commit is contained in:
Matthias Clasen 2020-10-06 18:09:52 -04:00
parent 4993cde0cb
commit 3d9eb61bba

View File

@ -100,7 +100,7 @@ get_break_type_name (GUnicodeBreakType type)
const char *
get_combining_class_name (int cclass)
{
const char *classes[255] = { 0, };
const char *classes[256] = { 0, };
classes[0] = "Not Reordered";
classes[1] = "Overlay";