added NULL character at the end of buffer in misc when reading versions.json

This commit is contained in:
Václav Šmejkal 2022-11-22 19:40:49 +01:00
parent 8c4b888a88
commit 77ae6e1cf6
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -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)
{