im->draw_y_grid = 0;
break;
};
- if (sscanf(optarg, "%[-0-9.e+]:%d", double_str , &im->ylabfact) == 2) {
+ if (sscanf(optarg, "%[0-9.e+-]:%d", double_str , &im->ylabfact) == 2) {
if (rrd_strtodbl( double_str, 0, &(im->ygridstep), "option -y") != 2){
return;
}
break;
case 1008: /* grid-dash */
if(sscanf(optarg,
- "%[-0-9.e+]:%[-0-9.e+]",
+ "%[0-9.e+-]:%[0-9.e+-]",
double_str,
double_str2 ) != 2) {
if ( rrd_strtodbl( double_str, 0, &(im->grid_dash_on),NULL) !=2
break;
case 1002: /* right y axis */
if(sscanf(optarg,
- "%[-0-9.e+]:%[-0-9.e+]",
+ "%[0-9.e+-]:%[0-9.e+-]",
double_str,
double_str2 ) == 2
&& rrd_strtodbl( double_str, 0, &(im->second_axis_scale),NULL) == 2
double size = 1;
int end;
- if (sscanf(optarg, "%10[A-Z]:%[-0-9.e+]%n", prop, double_str, &end) >= 2
+ if (sscanf(optarg, "%10[A-Z]:%[0-9.e+-]%n", prop, double_str, &end) >= 2
&& rrd_strtodbl( double_str, 0, &size, NULL) == 2) {
int sindex, propidx;
int n;
n = 0;
- sscanf(str, "%20[-0-9.e+],%29[A-Z]%n", double_str, func, &n);
+ sscanf(str, "%20[0-9.e+-],%29[A-Z]%n", double_str, func, &n);
if ( rrd_strtodbl( double_str, NULL, ¶m, NULL) != 2 ){
n = 0;
sscanf(str, "%29[A-Z]%n", func, &n);
break;
case 'i':
- matches = sscanf(optarg, DS_NAM_FMT ":%[-0-9.e+]", ds_nam, double_str);
+ matches = sscanf(optarg, DS_NAM_FMT ":%[0-9.e+-]", ds_nam, double_str);
if( matches >= 1 ) {
strtod_ret_val = rrd_strtodbl( double_str, NULL, &min, NULL );
}
break;
case 'a':
- matches = sscanf(optarg, DS_NAM_FMT ":%[-0-9.e+]", ds_nam, double_str);
+ matches = sscanf(optarg, DS_NAM_FMT ":%[0-9.e+-]", ds_nam, double_str);
if( matches >= 1 ) {
strtod_ret_val = rrd_strtodbl( double_str, NULL, &max, NULL );
}