--- grustibus-0.43/src/mameio.c~ 2001-05-28 02:09:06.000000000 +0200 +++ grustibus-0.43/src/mameio.c 2009-02-08 23:08:12.435550652 +0100 @@ -182,20 +182,20 @@ if (!strcmp(keyword, "name")) g_snprintf(romname, MAX_ROMNAME, - value); + "%s", value); if (!strcmp(keyword, "description")) g_snprintf(gamename, MAX_GAMENAME, - value); + "%s", value); if (!strcmp(keyword, "year")) - g_snprintf(year, MAX_YEAR, value); + g_snprintf(year, MAX_YEAR, "%s", value); if (!strcmp(keyword, "manufacturer")) - g_snprintf(manu, MAX_MANU, value); + g_snprintf(manu, MAX_MANU, "%s", value); if (!strcmp(keyword, "cloneof")) g_snprintf(cloneof, MAX_ROMNAME, - value); + "%s", value); if (!strcmp(keyword, "romof")) g_snprintf(romof, MAX_ROMNAME, - value); + "%s", value); if (!strcmp(keyword, "chip")) { tmp_counter = 0; /* Put it in the next free chip[] slot */ @@ -207,12 +207,12 @@ g_strdup(value); } if (!strcmp(keyword, "video")) - g_snprintf(video, 200, value); + g_snprintf(video, 200, "%s", value); if (!strcmp(keyword, "input")) - g_snprintf(input, 200, value); + g_snprintf(input, 200, "%s", value); if (!strcmp(keyword, "driver")) g_snprintf(driver_status, 200, - value); + "%s", value); } /* Get romstatus */ @@ -237,7 +237,7 @@ i++; value[i] = '\0'; - g_snprintf(status, 200, value); + g_snprintf(status, 200, "%s", value); break; } } @@ -272,7 +272,7 @@ if (i > 0) { g_snprintf(driver, MAX_ROMNAME, - value); + "%s", value); break; } } @@ -420,7 +420,7 @@ (tmp_array[tmp_counter], "control")) g_snprintf(rom->control, MAX_CONTROL, - tmp_array[tmp_counter + + "%s", tmp_array[tmp_counter + 1]); if (!strcmp (tmp_array[tmp_counter], "buttons"))