Re: [PATCH] - further improved decoding of URL special characters

Morten Nilsen <[email protected]> Sat, 05 Nov 2005 19:51:02 +0100
Newsgroups gmane.comp.multimedia.xmms.devel
Message-ID <[email protected]>
Morten Nilsen wrote:
> if(*r == '%') {

another thing came to mind.. if the above if is changed to:

if(*r == '%' && *r[q] && *r[2]) {

we won't attempt parsing past the end of string if something like 
"foo%\0" is passed in, and we save some processing if "foo%a\0" is passed in

Cheers,
-- 
Morten