diff options
-rw-r--r-- | runtime/msg.c | 2 | ||||
-rw-r--r-- | runtime/rsconf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/msg.c b/runtime/msg.c index 4221efe3..f3181898 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -3801,7 +3801,7 @@ msgGetMsgVarNew(msg_t *pThis, uchar *name) /* always call MsgGetProp() without a template specifier */ /* TODO: optimize propNameToID() call -- rgerhards, 2009-06-26 */ propNameStrToID(name, &propid); - propName = es_newStrFromCStr((char*)name+1, ustrlen(name)-1); // TODO: optimize! + propName = es_newStrFromCStr((char*)name, ustrlen(name)); // TODO: optimize! pszProp = (uchar*) MsgGetProp(pThis, NULL, propid, propName, &propLen, &bMustBeFreed, NULL); es_deleteStr(propName); diff --git a/runtime/rsconf.c b/runtime/rsconf.c index 1c0e33c3..2cfb1691 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -486,7 +486,7 @@ cnfGetVar(char *name, void *usrptr) else if(name[1] == '!') estr = msgGetCEEVarNew((msg_t*) usrptr, name+2); else - estr = msgGetMsgVarNew((msg_t*) usrptr, (uchar*)name); + estr = msgGetMsgVarNew((msg_t*) usrptr, (uchar*)name+1); } else { /* if this happens, we have a program logic error */ estr = es_newStrFromCStr("err: var must start with $", sizeof("err: var must start with $")-1); |