diff options
author | deraadt <deraadt@openbsd.org> | 2013-11-27 21:25:24 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2013-11-27 21:25:24 +0000 |
commit | 4207a9b65a831479b19ad1c345630499e761ac62 (patch) | |
tree | 4e0767a1c9816e98bfd7b676f95e97ea84c9cb41 /libexec/login_token | |
parent | make the _dl_isalnum() resemble the ctype version (diff) | |
download | wireguard-openbsd-4207a9b65a831479b19ad1c345630499e761ac62.tar.xz wireguard-openbsd-4207a9b65a831479b19ad1c345630499e761ac62.zip |
unsigned char for ctype
ok okan kettenis
Diffstat (limited to 'libexec/login_token')
-rw-r--r-- | libexec/login_token/token.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/login_token/token.c b/libexec/login_token/token.c index 83ed46986d7..4bc65bf2e2b 100644 --- a/libexec/login_token/token.c +++ b/libexec/login_token/token.c @@ -1,4 +1,4 @@ -/* $OpenBSD: token.c,v 1.16 2013/08/22 04:43:40 guenther Exp $ */ +/* $OpenBSD: token.c,v 1.17 2013/11/27 21:25:25 deraadt Exp $ */ /*- * Copyright (c) 1995 Migration Associates Corp. All Rights Reserved @@ -383,8 +383,8 @@ static void lcase(char *cp) { while (*cp) { - if (isupper(*cp)) - *cp = tolower(*cp); + if (isupper((unsigned char)*cp)) + *cp = tolower((unsigned char)*cp); cp++; } } |