blob: 0eba3ae271fcc2df33fd3b3723cc36c0c5ab2c82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-server_net.c__tmp,v 1.1 2019/12/19 22:14:46 joerg Exp $
--- server/net.c_tmp.orig 2019-12-19 20:56:09.046271448 +0000
+++ server/net.c_tmp
@@ -1041,7 +1041,7 @@ static char * http_get(char * host, int
checkedCode = 1;
start = headers;
- while (!isspace(*start) && *start)
+ while (!isspace((unsigned char)*start) && *start)
start++;
if (!*start) {
close(sock);
@@ -1051,7 +1051,7 @@ static char * http_get(char * host, int
start++;
end = start;
- while (!isspace(*end) && *end)
+ while (!isspace((unsigned char)*end) && *end)
end++;
if (!*end) {
close(sock);
|