From e5d2df13e75bd09d7b9e28ece16cb9adca8ad9b6 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 8 Jan 2011 14:40:54 +0100 Subject: [PATCH] Fix error message when file cannot be opened. --- ssnes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssnes.c b/ssnes.c index af3a1b724c..eab1ff97ad 100644 --- a/ssnes.c +++ b/ssnes.c @@ -329,7 +329,7 @@ static void parse_input(int argc, char *argv[]) g_extern.rom_file = fopen(argv[optind], "rb"); if (g_extern.rom_file == NULL) { - SSNES_ERR("Could not open file: \"%s\"\n", optarg); + SSNES_ERR("Could not open file: \"%s\"\n", argv[optind]); exit(1); } if (strlen(g_extern.savefile_name_srm) == 0)