/[anubis]/anubis/src/tunnel.c
ViewVC logotype

Diff of /anubis/src/tunnel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by gray, Fri Jun 27 13:25:31 2003 UTC revision 1.21 by gray, Sun Jul 20 08:34:52 2003 UTC
# Line 93  collect_headers(MESSAGE *msg) Line 93  collect_headers(MESSAGE *msg)
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 */
# Line 338  save_command(MESSAGE *msg, char *line) Line 338  save_command(MESSAGE *msg, char *line)
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]);

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26