mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
16 lines
418 B
C
16 lines
418 B
C
$NetBSD: patch-src_rrd__restore.c,v 1.1 2016/08/27 07:40:23 dholland Exp $
|
|
|
|
Use <ctype.h> correctly.
|
|
|
|
--- src/rrd_restore.c~ 2016-04-19 15:52:26.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;
|
|
}
|
|
}
|