misc fixes

master
Lee Salzman 2013-05-18 21:12:49 +03:00
parent 978509faff
commit 99393a5391
2 changed files with 2 additions and 1 deletions

View File

@ -713,6 +713,7 @@ struct ctfclientmode : clientmode
dropped = getint(p);
if(dropped) loopk(3) droploc[k] = getint(p)/DMF;
}
if(p.overread()) break;
if(commit && flags.inrange(i))
{
flag &f = flags[i];

View File

@ -193,7 +193,7 @@ struct databuf
databuf subbuf(int sz)
{
sz = min(sz, maxlen-len);
sz = clamp(sz, 0, maxlen-len);
len += sz;
return databuf(&buf[len-sz], sz);
}