blob: aec4b663b85fd149339f9636ce1a100e1df77976 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-src_rrd__utils.c,v 1.2 2017/07/27 18:31:20 adam Exp $
Use <ctype.h> correctly.
--- src/rrd_utils.c.orig 2017-05-16 12:26:46.000000000 +0000
+++ src/rrd_utils.c
@@ -238,7 +238,7 @@ const char * rrd_scaled_duration (const
char * ep = NULL;
unsigned long int value = strtoul(token, &ep, 10);
/* account for -1 => UMAXLONG which is not what we want */
- if (! isdigit(token[0]))
+ if (! isdigit((unsigned char)token[0]))
return "value must be (suffixed) positive number";
/* Catch an internal error before we inhibit scaling */
if (0 == divisor)
|