summaryrefslogtreecommitdiffstats
path: root/runtime/rsconf.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-09-11 11:51:25 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-09-11 11:51:25 +0200
commitdb36d734a2aaa4600e39ec438c73b2432160e446 (patch)
tree2b84b45739550fc40fe041e9f588768137801077 /runtime/rsconf.c
parentde8d8b89a4d3fc4e6cff6b8ab26132896624421e (diff)
downloadrsyslog-db36d734a2aaa4600e39ec438c73b2432160e446.tar.gz
rsyslog-db36d734a2aaa4600e39ec438c73b2432160e446.tar.bz2
rsyslog-db36d734a2aaa4600e39ec438c73b2432160e446.zip
regression fix: message properties did not work
This was a regeression from the global/local variabe work done for this release. Consequently, this problem did not occur in any released version.
Diffstat (limited to 'runtime/rsconf.c')
-rw-r--r--runtime/rsconf.c2
1 files changed, 1 insertions, 1 deletions
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);