Commit 9eec37c4 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

More sanity checks.

Showing with 3 additions and 2 deletions
+3 -2
......@@ -85,9 +85,10 @@ static unsigned long int parseBatInfo(const char *fileName, const unsigned short
break;
}
char line[50];
char line[50] = "";
for (unsigned short int i = 0; i < lineNum; i++) {
fgets(line, sizeof line, file);
char* ok = fgets(line, sizeof line, file);
if (!ok) break;
}
fclose(file);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment