fix ping buf overreading into pong buf

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4056 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-12-22 16:22:23 +00:00
parent db61d19ad4
commit 04aae7b5da
+1 -2
View File
@@ -191,8 +191,7 @@ void serverms(int mode, int numplayers, int minremain, char *smapname, int milli
if(len < 0) continue;
// ping & pong buf
ucharbuf pi(data, sizeof(data));
ucharbuf po(&data[len], sizeof(data)-len);
ucharbuf pi(data, len), po(&data[len], sizeof(data)-len);
bool std = false;
if(getint(pi) != 0) // std pong