diff --git a/src/common/kernel/save.c b/src/common/kernel/save.c index 4c3ca3b93..da94866d1 100644 --- a/src/common/kernel/save.c +++ b/src/common/kernel/save.c @@ -1325,7 +1325,8 @@ writegame(const char *filename, char quiet) /* write_dynamictypes(); */ - F = cfopen(filename, "w"); + sprintf(buf, "%s/%s", datapath(), filename); + F = cfopen(buf, "w"); if (F==NULL) return -1; diff --git a/src/eressea/main.c b/src/eressea/main.c index 040db9cb9..e2abe0cae 100644 --- a/src/eressea/main.c +++ b/src/eressea/main.c @@ -343,7 +343,7 @@ processturn(char *filename) #endif /* FUZZY_BASE36 */ if (!nowrite) { char ztext[64]; - sprintf(ztext, "%s/%d", datapath(), turn); + sprintf(ztext, "%d", turn); return writegame(ztext, 0); } return 0;