summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gba_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gba_memory.c b/gba_memory.c
index ab45887..02b3e8b 100644
--- a/gba_memory.c
+++ b/gba_memory.c
@@ -2428,7 +2428,7 @@ u32 load_gamepak(const struct retro_game_info* info, const char *name)
else
p = gamepak_filename;
- snprintf(backup_filename, sizeof(backup_filename), "%s/%s", save_path, p);
+ snprintf(backup_filename, sizeof(backup_filename), "%s%c%s", save_path, PATH_SEPARATOR_CHAR, p);
p = strrchr(backup_filename, '.');
if (p)
strcpy(p, ".sav");