From e5bf0324acc5f9fc1209d2659fa3b86436da19dc Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 21 Oct 2013 11:26:55 +0200 Subject: regression fix: global variables could not be accessed via script --- runtime/rsconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/rsconf.c b/runtime/rsconf.c index b739608a..6c7c5fd5 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -490,7 +490,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+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 $", sizeof("err: var must start with $")-1); -- cgit v1.2.3