Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion examples/utilities/load_ini_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ int load_ini_buffer (
void * const user_data
) {

char * const ini_cache = malloc(ini_length);
/* `strip_ini_cache()` documents that it will immediately write a NUL
terminator at `ini_source[ini_length]`, so the buffer must be able to
hold `ini_length + 1` bytes. */
char * const ini_cache = malloc(ini_length + 1);

if (!ini_cache) {

Expand Down