diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-07-23 11:34:53 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-07-23 11:34:53 +0200 |
commit | 57a7a34748014586eec0f99b68c52f43979218f8 (patch) | |
tree | 8b3f011f733da1737108298b9a0a94152b355eea /runtime/rsconf.c | |
parent | 4ecd6bb9462f0fbaf4609f62d768847cc7e85f7e (diff) | |
download | rsyslog-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.c | 4 |
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; |