diff --git a/src/core/lib/misc.c b/src/core/lib/misc.c index 40c2692..7ca0ee6 100644 --- a/src/core/lib/misc.c +++ b/src/core/lib/misc.c @@ -125,6 +125,8 @@ boolean checkVersion() //LOAD jsonFile fread(buffer, bufferSize, 1, fileBuffer); + buffer[bufferSize] = '\0'; + //CHECK FOR TEXT IN buffer if (strcmp(buffer, "") == 0) {