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