httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <hart...@ooo.lanl.gov>
Subject Re: 62.escape_html.patch
Date Wed, 07 Feb 1996 13:01:30 GMT
 
> >        c89 -c +O3 -Ae -DXBITHACK -I/usr/local/include -DHPUX util.c
> >cc: "util.c", line 631: warning 611: Qualifiers are not assignment-compatible.
> >cc: "util.c", line 631: warning 563: Argument #2 is not the correct type.
> 
> Can you give me some context? I can't find anything wrong with line 631 of
> my util.c ...

Sorry, that was particularly unhelpful.

line 631:
      if (j == 0) return pstrdup(p, s);


-==- context ...

    for (i=0, j=0; s[i] != '\0'; i++)
        if (s[i] == '<' || s[i] == '>') j += 3;
        else if (s[i] == '&') j += 4;

    if (j == 0) return pstrdup(p, s);
    x = palloc(p, i + j + 1);
    for (i=0, j=0; s[i] != '\0'; i++, j++)
        if (s[i] == '<')
        {
            memcpy(&x[j], "&lt;", 4);


Mime
View raw message