summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c2
1 files changed, 1 insertions, 1 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);