Date: Mon, 02 May 2011 16:15:22 +0200 From: Robert Schulze <rs@bytecamp.net> To: freebsd-hackers@freebsd.org Subject: Re: [LIBC] Modfied Version of sscanf Message-ID: <4DBEBC7A.60607@bytecamp.net> In-Reply-To: <BANLkTim_WhRdWi8RbuubxQm4kD27V17h9g@mail.gmail.com> References: <C9E46C77.389%moeller.akt@googlemail.com> <4DBEAAD5.7040906@bytecamp.net> <BANLkTim_WhRdWi8RbuubxQm4kD27V17h9g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Am 02.05.2011 16:06, schrieb Artem Belevich: > > Second problem -- res on success will always be "" as you've just did *ptr=0. thats right, the copy should look like: res=strdup(str+4); > Bzzt! > > Try it on "GET blah_HTTP/1.1.1.1.1.1_whatever HTTP/1.1" will return "blah_HTTP/1.1.1.1.1.1_whatever" as resource. It should be the next step to check whether <resource> is valid. with kind regards, Robert Schulze
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DBEBC7A.60607>