Ginn Chen-san wrote (02/13/09 06:09 PM):
> I think following is better.
>
> if (c == '\n')
> {
> if (buffer) {
> buffer[i-1] = '\0';
> return buffer;
> }
> return strdup("");
> }I like this idea. I'll update the patch. However I have already filed a patch: http://code.google.com/p/libproxy/issues/detail?id=29 fujiwara > > Ginn
