artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0296ba
)
Two more char -> unsigned char in ctype functions.
author
reyk
<reyk@openbsd.org>
Wed, 14 Oct 2015 08:02:38 +0000
(08:02 +0000)
committer
reyk
<reyk@openbsd.org>
Wed, 14 Oct 2015 08:02:38 +0000
(08:02 +0000)
usr.sbin/httpd/httpd.c
patch
|
blob
|
history
diff --git
a/usr.sbin/httpd/httpd.c
b/usr.sbin/httpd/httpd.c
index
e3e095c
..
c755190
100644
(file)
--- a/
usr.sbin/httpd/httpd.c
+++ b/
usr.sbin/httpd/httpd.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: httpd.c,v 1.4
0 2015/10/13 07:57:13
reyk Exp $ */
+/* $OpenBSD: httpd.c,v 1.4
1 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)