From: Tobias Oetiker Date: Mon, 8 Sep 2014 12:17:37 +0000 (+0200) Subject: better parse the matched string X-Git-Tag: v1.5.0-rc1~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc8947ade16a3ac15a5f967d8ff6eeaed633ca53;p=thirdparty%2Frrdtool-1.x.git better parse the matched string --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 97ba1491..f9f4d35e 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -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, ¶m, NULL) != 2 ){ + if ( rrd_strtodbl( double_str, NULL, ¶m, NULL) != 2 ){ n = 0; sscanf(str, "%29[A-Z]%n", func, &n); if (n == (int) strlen(str)) { /* matched */