From 7d18756b39cc33482f8cf5574b20a51331c4cea3 Mon Sep 17 00:00:00 2001 From: qwx Date: Sat, 31 Mar 2018 11:38:09 +0200 Subject: gb*: reverse savegame field polarity --- sys/src/games/gb/gb.c | 2 +- sys/src/games/gba/gba.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/games/gb/gb.c b/sys/src/games/gb/gb.c index d6762b182..374af931a 100644 --- a/sys/src/games/gb/gb.c +++ b/sys/src/games/gb/gb.c @@ -99,7 +99,7 @@ loadsave(char *file) buf = emalloc(strlen(file) + 4); strcpy(buf, file); - p = strchr(buf, '.'); + p = strrchr(buf, '.'); if(p == nil) p = buf + strlen(buf); strcpy(p, ".sav"); diff --git a/sys/src/games/gba/gba.c b/sys/src/games/gba/gba.c index 8457b1e6f..5a53b68b3 100644 --- a/sys/src/games/gba/gba.c +++ b/sys/src/games/gba/gba.c @@ -145,7 +145,7 @@ loadsave(char *file) buf = emalloc(strlen(file) + 4); strcpy(buf, file); - p = strchr(buf, '.'); + p = strrchr(buf, '.'); if(p == nil) p = buf + strlen(buf); strcpy(p, ".sav"); -- cgit v1.2.3