/[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.21 by gray, Sun Jul 20 08:34:52 2003 UTC revision 1.22 by gray, Sat Jul 26 07:41:08 2003 UTC
# Line 49  get_boundary(MESSAGE *msg, char *line) Line 49  get_boundary(MESSAGE *msg, char *line)
49    
50          if (strncmp(line, "Content-Type:", 13))          if (strncmp(line, "Content-Type:", 13))
51                  return;                  return;
52            
53            /* Downcase the string to help search for boundary */
54          safe_strcpy(boundary_buf, line);          safe_strcpy(boundary_buf, line);
55          change_to_lower(boundary_buf);          change_to_lower(boundary_buf);
56          p = strstr(boundary_buf, "boundary=");          p = strstr(boundary_buf, "boundary=");
57          if (!p)          if (!p)
58                  return;                  return;
59            /* Now use the unaltered string. P still points past the
60               `boundary=' */
61            safe_strcpy(boundary_buf, line);
62          p += 9;          p += 9;
63          if (*p == '"') {          if (*p == '"') {
64                  char *q = strchr(++p, '"');                  char *q = strchr(++p, '"');

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

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