diff --git a/client/src/util.c b/client/src/util.c index bad2b1dd..65dcb11c 100644 --- a/client/src/util.c +++ b/client/src/util.c @@ -80,7 +80,7 @@ bool util_fileGetContents(const char * filename, char ** buffer, size_t * length } fclose(fh); - *buffer[fsize] = 0; + (*buffer)[fsize] = 0; *length = fsize; return true; }