[MPlayer-dev-eng] http stream basic auth base64_encode() fix

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Apr 15 23:54:56 CEST 2006


Hi,
On Wed, Mar 15, 2006 at 12:02:24AM -0500, Jeff D'Angelo wrote:
> Another way is to make an "n" version of url_unescape_string() to replace
> the strncpy() like I do in the enclosed patch.  Let me know what you
> think.

Completely went under in the stream of patches...

> +/* the "n" version of url_unescape_string(), parallels strncpy() */
> +void
> +url_unescape_nstring(char *outbuf, const char *inbuf, int len)
> +{
>  	unsigned char c,c1,c2;
> -        int i,len=strlen(inbuf);
> +        int i;

esp. with that comment, there should be something to the effect of
len = min(len, strlen(inbuf)).
I'll try to have a closer look at this, but I'm drowning in my own
patches already...

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list