From 86e82610f4f1188ec9dc4825d0278eb788a14ff8 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 21 May 2006 12:37:12 +0000 Subject: [PATCH] allow DS names starting with the same letters as operators git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@828 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_rpncalc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/program/src/rrd_rpncalc.c b/program/src/rrd_rpncalc.c index 3c6510f9..104ea8f2 100644 --- a/program/src/rrd_rpncalc.c +++ b/program/src/rrd_rpncalc.c @@ -274,9 +274,9 @@ rpn_parse(void *key_hash,const char *const expr_const,long (*lookup)(void *,char } #define match_op(VV,VVV) \ - else if (strncmp(expr, #VVV, strlen(#VVV))==0){ \ - rpnp[steps].op = VV; \ - expr+=strlen(#VVV); \ + else if (strncmp(expr, #VVV, strlen(#VVV))==0 && ( expr[strlen(#VVV)] == ',' || expr[strlen(#VVV)] == '\0' )){ \ + rpnp[steps].op = VV; \ + expr+=strlen(#VVV); \ } -- 2.30.2