added NULL character at the end of buffer in misc when reading versions.json
This commit is contained in:
parent
8c4b888a88
commit
77ae6e1cf6
@ -125,6 +125,8 @@ boolean checkVersion()
|
|||||||
//LOAD jsonFile
|
//LOAD jsonFile
|
||||||
fread(buffer, bufferSize, 1, fileBuffer);
|
fread(buffer, bufferSize, 1, fileBuffer);
|
||||||
|
|
||||||
|
buffer[bufferSize] = '\0';
|
||||||
|
|
||||||
//CHECK FOR TEXT IN buffer
|
//CHECK FOR TEXT IN buffer
|
||||||
if (strcmp(buffer, "") == 0)
|
if (strcmp(buffer, "") == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user