[csource-rle] compensate for null byte
The following Merge Request (MR) has been forwarded from GitHub in order to prevent the GNOME Project from losing contributions coming from un-official channels. And for contributors to not see their valuable contributions not being accounted for.
Relevant information:
Github handle: bazzinotti
MR URL: https://github.com/GNOME/gimp/pull/26
Patch URL: https://github.com/GNOME/gimp/pull/26.patch
Body of the MR:
When exporting a C source file with runtime length encoding, the C-string's array size does not accomodate for the null byte. However, GIMP accomodates for the NULL byte in it's NON-RLE export, suggesting that this has been a mere oversight for RLE.
This can cause at the worst a compile-time error and at least a warning from the compiler. Attached is the expected fix if you would like to dismiss the compiler warning / error.