93 |
|
|
94 |
while (recvline(SERVER, remote_client, buf, sizeof(buf) - 1)) { |
while (recvline(SERVER, remote_client, buf, sizeof(buf) - 1)) { |
95 |
remcrlf(buf); |
remcrlf(buf); |
96 |
if (isspace(buf[0])) { |
if (isspace((u_char)buf[0])) { |
97 |
if (!line) |
if (!line) |
98 |
/* Something wrong, assume we've got no |
/* Something wrong, assume we've got no |
99 |
headers */ |
headers */ |
338 |
int i; |
int i; |
339 |
ASSOC *asc = xmalloc(sizeof(*asc)); |
ASSOC *asc = xmalloc(sizeof(*asc)); |
340 |
|
|
341 |
for (i = 0; line[i] && isspace(line[i]); i++) |
for (i = 0; line[i] && isspace((u_char)line[i]); i++) |
342 |
; |
; |
343 |
|
|
344 |
asc->key = xmalloc(i + 1); |
asc->key = xmalloc(i + 1); |
345 |
memcpy(asc->key, line, i); |
memcpy(asc->key, line, i); |
346 |
asc->key[i] = 0; |
asc->key[i] = 0; |
347 |
for (; line[i] && isspace(line[i]); i++) |
for (; line[i] && isspace((u_char)line[i]); i++) |
348 |
; |
; |
349 |
if (line[i]) |
if (line[i]) |
350 |
asc->value = strdup(&line[i]); |
asc->value = strdup(&line[i]); |