summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-26 13:27:20 +0000
committerderaadt <deraadt@openbsd.org>2013-11-26 13:27:20 +0000
commit816091f5a431cd84230c34797d1eac457f97781d (patch)
tree4ff91d9bc7a5e6ef8145abed4ca113a0ede1c8ce
parentunsigned char casts for ctype (diff)
downloadwireguard-openbsd-816091f5a431cd84230c34797d1eac457f97781d.tar.xz
wireguard-openbsd-816091f5a431cd84230c34797d1eac457f97781d.zip
don't intentionally cast the argument to isprint() to the wrong type...
-rw-r--r--usr.sbin/relayd/relayd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relayd.c b/usr.sbin/relayd/relayd.c
index 8be99615419..894ec2a3652 100644
--- a/usr.sbin/relayd/relayd.c
+++ b/usr.sbin/relayd/relayd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayd.c,v 1.117 2013/05/30 20:17:12 reyk Exp $ */
+/* $OpenBSD: relayd.c,v 1.118 2013/11/26 13:27:20 deraadt Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -1211,7 +1211,7 @@ get_string(u_int8_t *ptr, size_t len)
char *str;
for (i = 0; i < len; i++)
- if (!(isprint((char)ptr[i]) || isspace((char)ptr[i])))
+ if (!(isprint(ptr[i]) || isspace(ptr[i])))
break;
if ((str = calloc(1, i + 1)) == NULL)