preventing from [-Werror=unused-result]
This commit is contained in:
parent
67170b2635
commit
cec421cbe5
@ -58,7 +58,7 @@ outputFlags encryptText(char *text, char *keyNew)
|
||||
|
||||
//TRY TO MAKE RANDOM GENERATION REALLY "RANDOM"
|
||||
fileBuffer = fopen("/dev/urandom", "r");
|
||||
fread(&numberBuffer, sizeof(numberBuffer), 1, fileBuffer);
|
||||
if (fread(&numberBuffer, sizeof(numberBuffer), 1, fileBuffer) == 0) abort(); //TODO: Make it safe
|
||||
srand(numberBuffer);
|
||||
numberBuffer = abs(numberBuffer); //MAKE numberBuffer POSITIVE
|
||||
|
||||
|
@ -141,7 +141,7 @@ boolean checkVersion()
|
||||
strcpy(buffer, "");
|
||||
|
||||
//LOAD jsonFile
|
||||
fread(buffer, bufferSize, 1, fileBuffer);
|
||||
if (fread(buffer, bufferSize, 1, fileBuffer) == 0) abort(); //TODO: Make it safe
|
||||
|
||||
buffer[bufferSize] = '\0';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user