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