mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Use (unsigned char) cast for ctype macro
This commit is contained in:
parent
db07ef76da
commit
b9a10b5810
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196752
@ -529,7 +529,7 @@ _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp)
|
||||
buf++;
|
||||
i = 0;
|
||||
for (len = 4; len > 0; len--) {
|
||||
if (isdigit((int)*buf)) {
|
||||
if (isdigit((unsigned char)*buf)) {
|
||||
i *= 10;
|
||||
i += *buf - '0';
|
||||
buf++;
|
||||
|
Loading…
Reference in New Issue
Block a user