pkgsrc/databases/rrdtool/patches/patch-src_rrd__xport.c
adam 56da83abef RRDtool 1.7.0
Bugfixes
--------
* made rrd_fetch_cb_wrapper in RRDs more careful with its arguments
* many bugfixes to resolve issues identified Coverty scan
* fix build issues with libdbl
* take the ds step into account while caching data in rrd graph DEF statements
* never 'exit' from librrd (even when DEBUG is on)

Features
--------
* new command rrd list to show rrd files in a directory
* configurable log-level for rrdcached
* hungarian translation (hu.po)

API
---
* New Exported funtions: rrd_lcd, rrd_reduce_data, rrd_cf_conf and rrd_list
* rrd_list support for perl and python binding
* all new and much more complete python bindings working on both python 2.6+ and 3.3+
* extended documentation in rrdlib.pod
2017-07-27 18:31:20 +00:00

33 lines
1.4 KiB
C

$NetBSD: patch-src_rrd__xport.c,v 1.2 2017/07/27 18:31:20 adam Exp $
Use <ctype.h> correctly.
--- src/rrd_xport.c.orig 2017-05-16 12:26:46.000000000 +0000
+++ src/rrd_xport.c
@@ -537,7 +537,7 @@ static int rrd_xport_format_sv(char sep,
if (addToBuffer(buffer,"\"time\"",6)) { return 1; }
for(unsigned long i=0;i<col_cnt;i++) {
/* strip leading spaces */
- char *t=legend_v[i]; while (isspace(*t)) { t++;}
+ char *t=legend_v[i]; while (isspace((unsigned char)*t)) { t++;}
/* and print it */
snprintf(buf,255,"%c\"%s\"",sep,t);
if (addToBuffer(buffer,buf,0)) { return 1;}
@@ -680,7 +680,7 @@ static int rrd_xport_format_xmljson(int
for (unsigned long j = 0; j < col_cnt; j++) {
char *entry = legend_v[j];
/* I do not know why the legend is "spaced", but let us skip it */
- while(isspace(*entry)){entry++;}
+ while(isspace((unsigned char)*entry)){entry++;}
/* now output it */
if (json){
snprintf(buf,sizeof(buf)," \"%s\"", entry);
@@ -970,7 +970,7 @@ static int rrd_xport_format_addprints(in
case GF_LINE:
entry = im->gdes[i].legend;
/* I do not know why the legend is "spaced", but let us skip it */
- while(isspace(*entry)){entry++;}
+ while(isspace((unsigned char)*entry)){entry++;}
if (json) {
snprintf(buf,sizeof(buf),",\n { \"line\": \"%s\" }",entry);
} else {