]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
better parse the matched string
authorTobias Oetiker <tobi@oetiker.ch>
Mon, 8 Sep 2014 12:17:37 +0000 (14:17 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Mon, 8 Sep 2014 12:17:37 +0000 (14:17 +0200)
src/rrd_graph.c

index 97ba14912b07e79a5f96fcc3411c515e38a9a42a..f9f4d35e809850967be39a799e343f412c78541f 100644 (file)
@@ -5175,7 +5175,7 @@ int vdef_parse(
 
     n = 0;
     sscanf(str, "%20[-0-9.e+],%29[A-Z]%n", double_str, func, &n);
-    if ( rrd_strtodbl( str, NULL, &param, NULL) != 2 ){
+    if ( rrd_strtodbl( double_str, NULL, &param, NULL) != 2 ){
         n = 0;
         sscanf(str, "%29[A-Z]%n", func, &n);
         if (n == (int) strlen(str)) {   /* matched */