SDL: fix Fortify-reported stack smash [Belegdol]

This commit is contained in:
R. Belmont 2010-03-08 02:45:15 +00:00
parent 14c6f9caf4
commit 3c69869db3

View File

@ -620,7 +620,7 @@ static void check_osd_inputs(running_machine *machine)
static void extract_window_config(running_machine *machine, int index, sdl_window_config *conf)
{
char buf[10];
char buf[20];
sprintf(buf,SDLOPTION_RESOLUTION("%d"), index);
// per-window options: extract the data