codebrainz approved this pull request.
Kind of gross, but at least the comment explains it well.
I can think of a couple alternatives, but none which require so few changes (ex. explicit size variables for each array, sentinel-terminated arrays, etc).