From 7291df0f859e6022909a39fff78439c620b2be2f Mon Sep 17 00:00:00 2001 From: aerkefiende Date: Thu, 6 Dec 2012 22:21:43 +0000 Subject: [PATCH] =?UTF-8?q?sprintf=20isn=C2=B4t=20as=20handy=20and=20secur?= =?UTF-8?q?e=20as=20snprintf,=20but=20there=C2=B4s=20no=20snprintf=20on=20?= =?UTF-8?q?windows=20(except=20a=20little=20different=20sprintf=5Fs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6951 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index dbd3c3ec..86bc3a1b 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -1439,7 +1439,7 @@ void scallvote(int *type, const char *arg1, const char *arg2) //FIXME: this stupid conversion of ints to strings and back should // really be replaced with a saner method char m[4]; - snprintf(&m[0], 4, "%d", nextmode); + sprintf(&m[0], "%d", nextmode); callvote(t, arg1, &m[0], arg2); break; }