- bug fix in coc_server.c

- bug fixes in tecs
- new system to determine host:port in six and tecs_client
This commit is contained in:
zolliker
2005-09-21 11:06:23 +00:00
parent 66d9d45dae
commit c7280ec25d
16 changed files with 328 additions and 309 deletions

View File

@@ -387,7 +387,7 @@ int CocPushThisHandler(CocVar *var, CocClient *cl, void *base, int mode) {
var->pending=1;
}
n=cl->npend;
if (n>=sizeof(cl->pend)) {
if (n * sizeof(Pend) >= sizeof(cl->pend)) {
ERR_MSG("too many commands")
}
cl->pend[n].var=var;