Really fix the USA_RESIDENT botch.

Submitted by:	Dmitry Valdov <dv@dv.ru>
This commit is contained in:
jkh 2000-03-03 20:33:21 +00:00
parent 69eb79866d
commit 37653e93e6
3 changed files with 3 additions and 3 deletions

View File

@ -386,7 +386,7 @@ configMake_conf(char *config)
if (!strncmp(lines[i], "USA_RESIDENT", 12)) {
free(lines[i]);
lines[i] = malloc(21); /* big enough */
sprintf(lines[i], "USA_RESIDENT=\"%s\"\n", USAResident ? "YES" : "NO");
sprintf(lines[i], "USA_RESIDENT=%s\n", USAResident ? "YES" : "NO");
}
}
}

View File

@ -386,7 +386,7 @@ configMake_conf(char *config)
if (!strncmp(lines[i], "USA_RESIDENT", 12)) {
free(lines[i]);
lines[i] = malloc(21); /* big enough */
sprintf(lines[i], "USA_RESIDENT=\"%s\"\n", USAResident ? "YES" : "NO");
sprintf(lines[i], "USA_RESIDENT=%s\n", USAResident ? "YES" : "NO");
}
}
}

View File

@ -386,7 +386,7 @@ configMake_conf(char *config)
if (!strncmp(lines[i], "USA_RESIDENT", 12)) {
free(lines[i]);
lines[i] = malloc(21); /* big enough */
sprintf(lines[i], "USA_RESIDENT=\"%s\"\n", USAResident ? "YES" : "NO");
sprintf(lines[i], "USA_RESIDENT=%s\n", USAResident ? "YES" : "NO");
}
}
}