Code

vnames can be up to MAX_VNAME_LEN long ... not only 30 chars ... -- Ulf Harnhammar...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 26 Mar 2006 14:36:35 +0000 (14:36 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 26 Mar 2006 14:36:35 +0000 (14:36 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@781 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_rpncalc.c

index 55ef196c61d4705153bc1b9c838250e4ca4c72f7..f17c7888e382d3c05dd8db5cb39ea18665d3da05 100644 (file)
@@ -257,7 +257,7 @@ rpn_parse(void *key_hash,const char *const expr_const,long (*lookup)(void *,char
     char *expr;
     long steps=-1;    
     rpnp_t  *rpnp;
-    char vname[30];
+    char vname[MAX_VNAME_LEN+10];
     
     rpnp=NULL;
     expr=(char *)expr_const;