summaryrefslogtreecommitdiff
path: root/games/openttd/patches/patch-aj
blob: 50ee4aaa05e38771e024bbbe4f1fd3cfe470d011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aj,v 1.1 2005/09/11 11:44:29 adrianp Exp $

--- win32.c.orig	2005-05-16 17:19:32.000000000 +0100
+++ win32.c
@@ -841,7 +841,7 @@ static long CDECL MidiSendCommand(const 
 	char buf[512];
 
 	va_start(va, cmd);
-	vsprintf(buf, cmd, va);
+	vsnprintf(buf, sizeof(buf), cmd, va);
 	va_end(va);
 	return mciSendStringA(buf, NULL, 0, 0);
 }