From a28deae56995882a88c331b4646e83522effe67b Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Nov 2023 14:03:40 +1100 Subject: [PATCH] [client] util: fix invalid pointer arithmatic --- client/src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }