Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2009 04:56:30 +0000 (UTC)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196752 - head/lib/libc/stdtime
Message-ID:  <200909020456.n824uUqQ082136@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909020456.n824uUqQ082136>