gmtool compilation problem fixed.

This commit is contained in:
Enno Rehling 2007-01-30 22:58:49 +00:00
parent e373a5af9e
commit 3b180b2980
1 changed files with 3 additions and 1 deletions

View File

@ -191,8 +191,10 @@ read_args(int argc, char **argv)
}
if (turn==-1) {
char fname[MAX_PATH];
FILE * F;
sprintf(fname, "%s/turn", basepath());
FILE * F = fopen(fname, "r+");
F = fopen(fname, "r+");
if (F) {
fgets(fname, sizeof(fname), F);
turn = atoi(fname);