diff options
author | ache <ache@FreeBSD.org> | 1999-11-04 04:57:05 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-11-04 04:57:05 +0000 |
commit | cf9ff6546cdddd8b3fcdf4a1101b8287cfb795ef (patch) | |
tree | bd1db9b507a3e8d1302d4583a01745749dd76853 /lib | |
parent | 7cff08527c03845203ebff80a4804022572ab3c5 (diff) | |
download | FreeBSD-src-cf9ff6546cdddd8b3fcdf4a1101b8287cfb795ef.zip FreeBSD-src-cf9ff6546cdddd8b3fcdf4a1101b8287cfb795ef.tar.gz |
Add unsigned char cast to isdigit
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/mktemp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index 0d1712e..af547c6 100644 --- a/lib/libc/stdio/mktemp.c +++ b/lib/libc/stdio/mktemp.c @@ -182,7 +182,7 @@ _gettemp(path, doopen, domkdir, slen) if (*trv == 'Z') *trv++ = 'a'; else { - if (isdigit(*trv)) + if (isdigit((unsigned char)*trv)) *trv = 'a'; else if (*trv == 'z') /* inc from z to A */ *trv = 'A'; |