[client] util: fix invalid pointer arithmatic

This commit is contained in:
Geoffrey McRae 2023-11-11 14:03:40 +11:00
parent cf51503a54
commit a28deae569

View File

@ -80,7 +80,7 @@ bool util_fileGetContents(const char * filename, char ** buffer, size_t * length
} }
fclose(fh); fclose(fh);
*buffer[fsize] = 0; (*buffer)[fsize] = 0;
*length = fsize; *length = fsize;
return true; return true;
} }