return true;
}
- fscanf(fp, "%f %d", &version, &release);
+ fscanf(fp, "%10f %10d", &version, &release);
debug(("Version = %.2f - Expected %.2f\n", version, VERSION));
debug(("Release = %d - Expected %d\n", release, RELEASE));
rtn = true;
}
- fscanf(fp, "%d %d %d %d %d %d %d", &engine.fullScreen, &game.musicVol, &game.soundVol, &game.output, &game.brightness, &engine.extremeAvailable, &game.gore);
+ fscanf(fp, "%10d %10d %10d %10d %10d %10d %10d", &engine.fullScreen, &game.musicVol, &game.soundVol, &game.output, &game.brightness, &engine.extremeAvailable, &game.gore);
fclose(fp);
return 0;
}
- fscanf(fp, "%s", privateKey);
+ fscanf(fp, "%19s", privateKey);
fclose(fp);