char *url_adapt(const char *src, size_t srclen, const char *data, size_t *newlen)
{
char *out,*outp;
- int maxl,n,no_output;
+ int maxl,n;
if(src==NULL) {
US.state=STATE_NORMAL;
out=malloc(srclen+1);
maxl=srclen;
n=srclen;
- no_output=0;
*newlen=0;
outp=out;
}
break;
} else if(*src=='\\') {
- no_output=1;
US.state=STATE_TAG_QVAL2b;
} else if (*src=='>') {
US.state=STATE_NORMAL;
break;
}
- if(no_output) {
- src++;
- no_output=0;
- continue;
- }
*outp++=*src++;
*newlen+=1;
}