(datadir, edatadir, gamedir): Rename to avoid confusion with Autoconf

output variable datadir and with configuration data.
This commit is contained in:
Markus Armbruster 2006-02-18 09:16:50 +00:00
parent 58f67c8e19
commit 5282f500b5
6 changed files with 15 additions and 15 deletions

View file

@ -435,8 +435,8 @@ allocate_memory(void)
int i;
char *fname;
fname = malloc(strlen(datadir) + 1 + strlen(empfile[EF_SECTOR].file) + 1);
sprintf(fname, "%s/%s", datadir, empfile[EF_SECTOR].file);
fname = malloc(strlen(gamedir) + 1 + strlen(empfile[EF_SECTOR].file) + 1);
sprintf(fname, "%s/%s", gamedir, empfile[EF_SECTOR].file);
sect_fptr = fopen(fname, "wb");
if (sect_fptr == NULL) {
perror(fname);