From 3f7029ec37245e4f182c2590dea1dd5afdfdb433 Mon Sep 17 00:00:00 2001 From: Peter Date: Sun, 17 Feb 2013 17:49:48 +0000 Subject: [PATCH] Add a missing null terminator to the slot 1 ROM file list. Previously, GSport could crash when "parallel.rom" is missing due to overrunning the end of the file list. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 985e7ca..d6a86c4 100644 --- a/src/config.c +++ b/src/config.c @@ -334,7 +334,7 @@ int g_cfg_file_pathfield = 0; const char *g_gsport_rom_names[] = { "ROM", "ROM", "ROM.01", "ROM.03", 0 }; /* First entry is special--it will be overwritten by g_cfg_rom_path */ -const char *g_gsport_c1rom_names[] = { "parallel.rom" }; +const char *g_gsport_c1rom_names[] = { "parallel.rom", 0 }; const char *g_gsport_c2rom_names[] = { 0 }; const char *g_gsport_c3rom_names[] = { 0 }; const char *g_gsport_c4rom_names[] = { 0 };