summaryrefslogtreecommitdiffstats
path: root/runtime/rsconf.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-07-23 11:34:53 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-07-23 11:34:53 +0200
commit57a7a34748014586eec0f99b68c52f43979218f8 (patch)
tree8b3f011f733da1737108298b9a0a94152b355eea /runtime/rsconf.c
parent4ecd6bb9462f0fbaf4609f62d768847cc7e85f7e (diff)
downloadrsyslog-57a7a34748014586eec0f99b68c52f43979218f8.tar.gz
rsyslog-57a7a34748014586eec0f99b68c52f43979218f8.tar.bz2
rsyslog-57a7a34748014586eec0f99b68c52f43979218f8.zip
fix: global&local variables could not be accessed via RainerScript
also, global variable pool did receive extra variables that did not belong to global pool (problem in last milestone commit)
Diffstat (limited to 'runtime/rsconf.c')
-rw-r--r--runtime/rsconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/rsconf.c b/runtime/rsconf.c
index b13e5cc7..ffe0d1d1 100644
--- a/runtime/rsconf.c
+++ b/runtime/rsconf.c
@@ -486,10 +486,10 @@ cnfGetVar(char *name, void *usrptr)
else if(name[1] == '!')
estr = msgGetCEEVarNew((msg_t*) usrptr, name+2);
else
- estr = msgGetMsgVarNew((msg_t*) usrptr, (uchar*)name+1);
+ estr = msgGetMsgVarNew((msg_t*) usrptr, (uchar*)name);
} else { /* if this happens, we have a program logic error */
estr = es_newStrFromCStr("err: var must start with $",
- strlen("err: var must start with $"));
+ sizeof("err: var must start with $")-1);
}
if(Debug) {
char *s;