diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-21 15:54:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-21 15:54:47 +0000 |
commit | da0eb85667ace37db4ee0c23068caca3030d9827 (patch) | |
tree | 18efe03a97700948a6a7b8e1f89a5f623ff521d4 /bin/md5/md5.c | |
parent | 52a4180aab8992aa7ddcd4f1d80e240a642bf836 (diff) |
add unsigned char casts for specific calls to ctype.h macros.
ok guenther step
Diffstat (limited to 'bin/md5/md5.c')
-rw-r--r-- | bin/md5/md5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c index 87d34af083b..e2417e1940c 100644 --- a/bin/md5/md5.c +++ b/bin/md5/md5.c @@ -1,4 +1,4 @@ -/* $OpenBSD: md5.c,v 1.56 2013/04/15 15:54:17 millert Exp $ */ +/* $OpenBSD: md5.c,v 1.57 2013/11/21 15:54:45 deraadt Exp $ */ /* * Copyright (c) 2001,2003,2005-2006 Todd C. Miller <Todd.Miller@courtesan.com> @@ -584,7 +584,7 @@ digest_filelist(const char *file, struct hash_function *defhash) lbuf[len] = '\0'; buf = lbuf; } - while (isspace(*buf)) + while (isspace((unsigned char)*buf)) buf++; /* @@ -658,7 +658,7 @@ digest_filelist(const char *file, struct hash_function *defhash) continue; } *p++ = '\0'; - while (isspace(*p)) + while (isspace((unsigned char)*p)) p++; if (*p == '\0') continue; |