ua

Nikola Vladov <[email protected]> Sun, 12 Feb 2006 21:59:17 +0200
Newsgroups gmane.comp.web.fnord
Message-ID <[email protected]>
One need to correct fnor to:

  char *tmp;
    if ((tmp=header(buf,len,"User-Agent"))) ua=tmp;
    refer=header(buf,len,"Referer");

Otherwise if User_agent is not set -- segmentation-fault!

Nikola

PS.  Original is:

  char *tmp;
    ua=header(buf,len,"User-Agent");
    refer=header(buf,len,"Referer");