From 3c69869db3456dc1d971e596365e98aee6bfdbf8 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Mon, 8 Mar 2010 02:45:15 +0000 Subject: [PATCH] SDL: fix Fortify-reported stack smash [Belegdol] --- src/osd/sdl/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/sdl/video.c b/src/osd/sdl/video.c index 96b1079c0df..4d1eca5f8f8 100644 --- a/src/osd/sdl/video.c +++ b/src/osd/sdl/video.c @@ -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