diff options
Diffstat (limited to 'src/cmd/postscript')
-rw-r--r-- | src/cmd/postscript/common/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/postscript/common/misc.c b/src/cmd/postscript/common/misc.c index aca58f0e..28120ea5 100644 --- a/src/cmd/postscript/common/misc.c +++ b/src/cmd/postscript/common/misc.c @@ -4,6 +4,7 @@ * */ +#include <u.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -170,10 +171,10 @@ str_convert(str, err) * */ - if ( ! isdigit(**str) ) + if ( ! isdigit((uchar)**str) ) return(err); - for ( i = 0; isdigit(**str); *str += 1 ) + for ( i = 0; isdigit((uchar)**str); *str += 1 ) i = 10 * i + **str - '0'; return(i); |