blob: e36f65cba8a609b53d25f7d07fd097c77c39446d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-src_rrd__restore.c,v 1.2 2017/07/27 18:31:20 adam Exp $
Use <ctype.h> correctly.
--- src/rrd_restore.c.orig 2017-05-16 12:26:46.000000000 +0000
+++ src/rrd_restore.c
@@ -104,7 +104,7 @@ static xmlChar* get_xml_element (
}
/* strip whitespace from end of message */
for (c-- ; c != msgcpy ; c--) {
- if (!isprint(*c)) {
+ if (!isprint((unsigned char)*c)) {
*c = 0;
}
}
|