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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user