svn commit: r196752 - head/lib/libc/stdtime

[ Available lists | Index of svn-src-all | Month of Sep 2009 | Week of 2 Sep 2009 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Andrey A. Chernov <ache@FreeBSD.org>
Date
2 Sep 2009 04:56:30
Subject
svn commit: r196752 - head/lib/libc/stdtime
Message-ID
200909020456.n824uUqQ082136@svn.freebsd.org


[ Hide this part ]
Author: ache
Date: Wed Sep 2 04:56:30 2009
New Revision: 196752
URL: http://svn.freebsd.org/changeset/base/196752

Log:
Use (unsigned char) cast for ctype macro

Modified:
head/lib/libc/stdtime/strptime.c

Modified: head/lib/libc/stdtime/strptime.c
==============================================================================
--- head/lib/libc/stdtime/strptime.c Wed Sep 2 04:43:46 2009 (r196751)
+++ head/lib/libc/stdtime/strptime.c Wed Sep 2 04:56:30 2009 (r196752)
@@ -529,7 +529,7 @@ label:
buf++;
i = 0;
for (len = 4; len > 0; len--) {
- if (isdigit((int)*buf)) {
+ if (isdigit((unsigned char)*buf)) {
i *= 10;
i += *buf - '0';
buf++;

Elapsed time: 0.310 seconds