glib-compile-resources: Fix generated code compiling with C++ compilers
glib-compile-resources: Fix generated code compiling with C++ compilers

With 0d685b494637775edcb6941706fb047217c48b3f, we now encode resource
data as a string. Strings have trailing nul terminators. A C compiler
will happily ignore the fact that the nul terminator exceeds the stated
array length, and will drop it — but a C++ compiler won’t, and will
raise:

error: initializer-string for array of chars is too long [-fpermissive]

Fix that by increasing the array length by 1, and subtracting it again
in the GStaticResource struct.

Signed-off-by: Philip Withnall <29c2a2ac2a854b9cf047275aa9de346d096be2e0@endlessm.com>

endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib