From 60f0ef807e29fd88a5d0c123a34cf163cb4ead51 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 12 May 2022 18:42:17 +0200 Subject: [PATCH] fixed checkVersion problem(s) this was caused to invalid buffer --- src/lib/misc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/misc.c b/src/lib/misc.c index 3d2b1f7..98839ae 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -52,11 +52,14 @@ void checkVersion(inputFlags flags) //JSON VARIABLES fileBuffer = fopen(VERSIONS_NAME, "r"); - char buffer[256]; + char buffer[512]; char lineBuffer[64]; struct json_object *parsedJson; struct json_object *active; + //FIX buffer + strcpy(buffer, ""); + //LOAD jsonFile while (fgets(lineBuffer, sizeof(lineBuffer), fileBuffer) != NULL) {