- bug fixes in tecs client routines

- improved instr_host routine
- double control etc. in tecs
This commit is contained in:
zolliker
2006-08-17 15:40:29 +00:00
parent ce25823567
commit fdddef7ed9
5 changed files with 109 additions and 38 deletions

View File

@@ -206,7 +206,7 @@ int CocPushArg(CocConn *conn, const char *name, void *value, int type, int size)
assert(NULL==strchr(name, ' '));
buf=&conn->cmdbuf;
n=conn->nargs;
if (n>=sizeof(conn->args)) ERR_MSG("too many return arguments");
if (n>=sizeof(conn->args)/sizeof(conn->args[0])) ERR_MSG("too many return arguments");
conn->args[n].adr=value;
conn->args[n].type=type;
conn->args[n].size=size;