summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd/httpd.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2015-10-14 08:02:39 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2015-10-14 08:02:39 +0000
commit9697e0e3c9e7331691283fff518f3fdc00ae643a (patch)
treed6a5d28a697282569db537fa3f4a891d13cf0b4b /usr.sbin/httpd/httpd.c
parent7e592b8724e4beef8ad0e1836f0535a858ef92b3 (diff)
Two more char -> unsigned char in ctype functions.
Diffstat (limited to 'usr.sbin/httpd/httpd.c')
-rw-r--r--usr.sbin/httpd/httpd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/httpd/httpd.c b/usr.sbin/httpd/httpd.c
index e3e095ccbc6..c755190095e 100644
--- a/usr.sbin/httpd/httpd.c
+++ b/usr.sbin/httpd/httpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: httpd.c,v 1.40 2015/10/13 07:57:13 reyk Exp $ */
+/* $OpenBSD: httpd.c,v 1.41 2015/10/14 08:02:38 reyk Exp $ */
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
@@ -831,7 +831,8 @@ get_string(uint8_t *ptr, size_t len)
char *str;
for (i = 0; i < len; i++)
- if (!(isprint(ptr[i]) || isspace(ptr[i])))
+ if (!(isprint((unsigned char)ptr[i]) ||
+ isspace((unsigned char)ptr[i])))
break;
if ((str = calloc(1, i + 1)) == NULL)