diff options
author | 2013-11-25 12:15:19 +0000 | |
---|---|---|
committer | 2013-11-25 12:15:19 +0000 | |
commit | 8f9391f54d26e842532774c727d01273833deaf0 (patch) | |
tree | d861153a58bbda2006ab6156e933b876f24c3102 /lib/libc/stdio | |
parent | disable %n in printf(9); there is no need for it in the kernel besides (diff) | |
download | wireguard-openbsd-8f9391f54d26e842532774c727d01273833deaf0.tar.xz wireguard-openbsd-8f9391f54d26e842532774c727d01273833deaf0.zip |
Use iswupper() for wide characters, not isupper(); ok deraadt
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/vfwscanf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfwscanf.c b/lib/libc/stdio/vfwscanf.c index e5cf5e129c1..2a166730710 100644 --- a/lib/libc/stdio/vfwscanf.c +++ b/lib/libc/stdio/vfwscanf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfwscanf.c,v 1.2 2012/01/18 17:23:11 chl Exp $ */ +/* $OpenBSD: vfwscanf.c,v 1.3 2013/11/25 12:15:19 stsp Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -31,7 +31,6 @@ * SUCH DAMAGE. */ -#include <ctype.h> #include <inttypes.h> #include <limits.h> #include <locale.h> @@ -324,7 +323,7 @@ literal: return (EOF); default: /* compat */ - if (isupper(c)) + if (iswupper(c)) flags |= LONG; c = CT_INT; base = 10; |