fix the warns that actually matter

This commit is contained in:
DarthArgus
2015-10-27 18:02:01 -05:00
parent 9e6f200300
commit f0160fe7ad
4 changed files with 45 additions and 43 deletions
@@ -119,10 +119,11 @@ void Os::installCommon(void)
char buffer[512];
while (!feof(f))
{
fgets(buffer, 512, f);
if (strncmp(buffer, "processor\t: ", 12)==0)
{
processorCount = atoi(buffer+12)+1;
if (fgets(buffer, 512, f) != NULL) {
if (strncmp(buffer, "processor\t: ", 12)==0)
{
processorCount = atoi(buffer+12)+1;
}
}
}
fclose(f);