From 8abb775e8094d66d873a91fca7a6009e2a19e92f Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 15 Sep 2004 19:01:59 +0000 Subject: signed vs unsigned char casting... --- lib/libc/time/strptime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libc/time/strptime.c b/lib/libc/time/strptime.c index cc8209a9b8b..141fc202310 100644 --- a/lib/libc/time/strptime.c +++ b/lib/libc/time/strptime.c @@ -36,7 +36,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: strptime.c,v 1.9 2004/01/20 16:50:18 millert Exp $"; +static char rcsid[] = "$OpenBSD: strptime.c,v 1.10 2004/09/15 19:01:58 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -81,7 +81,7 @@ _strptime(const char *buf, const char *fmt, struct tm *tm, int initialize) relyear = -1; } - bp = buf; + bp = (unsigned char *)buf; while ((c = *fmt) != '\0') { /* Clear `alternate' modifier prior to new conversion. */ alt_format = 0; -- cgit v1.2.3