From 7047ba2b6da2606efc3acd4b6f6f61c5bcdf104d Mon Sep 17 00:00:00 2001 From: bucanero Date: Mon, 10 Jun 2024 15:42:17 -0300 Subject: [PATCH] adjust --- source/exec_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/exec_cmd.c b/source/exec_cmd.c index bea539a..5065c6e 100644 --- a/source/exec_cmd.c +++ b/source/exec_cmd.c @@ -57,7 +57,7 @@ static void toggleCheatFile(game_entry_t* game) if (game->flags & CHEAT_FLAG_LOCKED) { snprintf(file_path, sizeof(file_path), "%s", game->path); - strrchr(file_path, '-')[1] = '\0'; + *strrchr(file_path, '-') = 0; } else snprintf(file_path, sizeof(file_path), "%s-disabled", game->path);