(datadir, edatadir, gamedir): Rename to avoid confusion with Autoconf
output variable datadir and with configuration data.
This commit is contained in:
parent
58f67c8e19
commit
5282f500b5
6 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue