- fixed a serious bug where %T arguments were read backwards (they now match the wiki documentation of phrase and then client)

- fixed a bug where the argument count for %T was not checked properly

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40894
This commit is contained in:
David Anderson 2007-06-06 17:34:35 +00:00
parent 8303b79ef7
commit 5193fe5a4e

View File

@ -738,13 +738,13 @@ reswitch:
}
case 'T':
{
CHECK_ARGS(0);
CHECK_ARGS(1);
char *key;
bool error;
size_t res;
cell_t *target;
pCtx->LocalToPhysAddr(params[arg++], &target);
pCtx->LocalToString(params[arg++], &key);
pCtx->LocalToPhysAddr(params[arg++], &target);
res = Translate(buf_p, llen, pCtx, key, *target, params, &arg, &error);
if (error)
{