diff options
| author | 2015-10-11 03:23:28 +0000 | |
|---|---|---|
| committer | 2015-10-11 03:23:28 +0000 | |
| commit | 3f9f973b14145f7eb8ce199c5b824d07c2acf615 (patch) | |
| tree | 1f6827557e0487391a104ea9583eb425986b3d1d /usr.sbin/ldapd/syntax.c | |
| parent | Don't allow "rm -rf /" (diff) | |
| download | wireguard-openbsd-3f9f973b14145f7eb8ce199c5b824d07c2acf615.tar.xz wireguard-openbsd-3f9f973b14145f7eb8ce199c5b824d07c2acf615.zip | |
The <ctype.h> is*() interfaces expect EOF or an unsigned char; cast to
(unsigned char) as required
found by Michael McConville (mmcconv1 (at) sccs.swarthmore.edu) w/Coccinelle
Diffstat (limited to 'usr.sbin/ldapd/syntax.c')
| -rw-r--r-- | usr.sbin/ldapd/syntax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/syntax.c b/usr.sbin/ldapd/syntax.c index bfae26effc9..27f73527248 100644 --- a/usr.sbin/ldapd/syntax.c +++ b/usr.sbin/ldapd/syntax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syntax.c,v 1.2 2013/11/23 18:02:44 deraadt Exp $ */ +/* $OpenBSD: syntax.c,v 1.3 2015/10/11 03:23:28 guenther Exp $ */ /* * Copyright (c) 2010 Martin Hedenfalk <martin@bzero.se> @@ -142,7 +142,7 @@ syntax_is_printable_string(struct schema *schema, char *value, size_t len) char *p; for (p = value; len > 0 && *p != '\0'; p++, len--) { - if (!isalnum(*p) && strchr(special, *p) == NULL) + if (!isalnum((unsigned char)*p) && strchr(special, *p) == NULL) return 0; } |
