Skip to content

Null terminate array of strings

Michael Catanzaro requested to merge mcatanzaro/#69 into master

This fixes the following critical:

Unable to parse accelerator '\u0010GJ': ignored request to install accelerators

When a const string [] is passed to a C function it is passed as a pointer to a list of pointers without a null terminator at the end of the list. Therefore we must manually put a null at the end of the list if the C function is expecting it (which is usually the case for a list of pointers of unknown length).

Fixes #69 (closed)

Edited by Ben Corby

Merge request reports