From e7d20cf352688bf717a01f4e6d9e6f497c2bea4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 20 Sep 2025 19:19:34 +0200 Subject: New upstream version 5.3.1Beta2 --- app/help/genhelp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/help/genhelp.c') diff --git a/app/help/genhelp.c b/app/help/genhelp.c index 2732874..0767749 100644 --- a/app/help/genhelp.c +++ b/app/help/genhelp.c @@ -121,8 +121,7 @@ int main(int argc, char * argv[]) fseek(inFile, 0, SEEK_SET); jsonData = malloc(length + 1); if (jsonData) { - fread(jsonData, 1, length, inFile); - jsonData[length] = '\0'; + jsonData[ fread(jsonData, 1, length, inFile) ] = '\0'; } fclose(inFile); } -- cgit v1.2.3