From 5193fe5a4e4af024d430b477b8a81e93280d28af Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 6 Jun 2007 17:34:35 +0000 Subject: [PATCH] - 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 --- core/sm_stringutil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sm_stringutil.cpp b/core/sm_stringutil.cpp index 7d2d0a3d..92dc0af4 100644 --- a/core/sm_stringutil.cpp +++ b/core/sm_stringutil.cpp @@ -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) {