sprintf isn´t as handy and secure as snprintf, but there´s no snprintf on windows (except a little different sprintf_s)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6951 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
aerkefiende
2012-12-06 22:21:43 +00:00
parent c1c5b2d0b0
commit 7291df0f85
+1 -1
View File
@@ -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;
}