diff options
Diffstat (limited to 'contrib/ntp/libntp/octtoint.c')
-rw-r--r-- | contrib/ntp/libntp/octtoint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/ntp/libntp/octtoint.c b/contrib/ntp/libntp/octtoint.c index f792b2b..e519601 100644 --- a/contrib/ntp/libntp/octtoint.c +++ b/contrib/ntp/libntp/octtoint.c @@ -2,6 +2,7 @@ * octtoint - convert an ascii string in octal to an unsigned * long, with error checking */ +#include <config.h> #include <stdio.h> #include <ctype.h> @@ -23,7 +24,7 @@ octtoint( u = 0; while (*cp != '\0') { - if (!isdigit((int)*cp) || *cp == '8' || *cp == '9') + if (!isdigit((unsigned char)*cp) || *cp == '8' || *cp == '9') return 0; if (u >= 0x20000000) return 0; /* overflow */ |