aboutsummaryrefslogtreecommitdiff
path: root/libntp/atouint.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/atouint.c')
-rw-r--r--libntp/atouint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libntp/atouint.c b/libntp/atouint.c
index ab86130dfcdc..0a6163907a51 100644
--- a/libntp/atouint.c
+++ b/libntp/atouint.c
@@ -28,7 +28,7 @@ atouint(
u = 0;
while ('\0' != *cp) {
- if (!isdigit(*cp))
+ if (!isdigit((unsigned char)*cp))
return 0;
if (u > 429496729 || (u == 429496729 && *cp >= '6'))
return 0; /* overflow */