Blame pcsxr-1.9.94-SDLjoyoverflowbug.patch

Mystro256 a1c269e
diff -rupN a/plugins/dfinput/cfg-gtk.c b/plugins/dfinput/cfg-gtk.c
Mystro256 a1c269e
--- a/plugins/dfinput/cfg-gtk.c	2013-11-09 16:24:16.000000000 -0500
Mystro256 a1c269e
+++ b/plugins/dfinput/cfg-gtk.c	2017-05-30 08:46:57.799501874 -0400
Mystro256 a1c269e
@@ -607,7 +607,7 @@ static void PopulateDevList() {
Mystro256 a1c269e
 
Mystro256 a1c269e
 		n = SDL_NumJoysticks();
Mystro256 a1c269e
 		for (j = 0; j < n; j++) {
Mystro256 a1c269e
-			sprintf(buf, "%d: %s", j + 1, SDL_JoystickName(j));
Mystro256 a1c269e
+			snprintf(buf, sizeof(buf), "%d: %s", j + 1, SDL_JoystickName(j));
Mystro256 a1c269e
 			gtk_list_store_append(store, &iter);
Mystro256 a1c269e
 			gtk_list_store_set(store, &iter, 0, buf, -1);
Mystro256 a1c269e
 		}