summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-15 19:01:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-15 19:01:59 +0000
commit8abb775e8094d66d873a91fca7a6009e2a19e92f (patch)
tree13ab40843805fe4b06ad9c572dd6d84923d7d8a4 /lib
parent7e0ae0af5ed5cdda735dd5ae11112626f3aedcd4 (diff)
signed vs unsigned char casting...
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/time/strptime.c4
1 files changed, 2 insertions, 2 deletions
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 <sys/localedef.h>
@@ -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;