From 852825a97efb1508d4dbdbec311115a8d772908b Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Nov 2023 12:22:06 +1100 Subject: [PATCH] [client] util: fix failure to dereference pointer --- 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 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; }