Fix an off-by-one error

When using G_N_ELEMENTS, we can't use a NULL-terminated array.
G_N_ELEMENTS counts the NULL too.