[Mplayer-cvslog] CVS: main/libmpdemux open.c,1.92,1.93

Jonas Jensen jbj at knef.dk
Sat Apr 24 15:29:59 CEST 2004


On Sat, 2004-04-24 at 15:22 +0200, Roberto Togni CVS wrote:
> -    strstr(filename, "://"))
> -    url = url_new(filename);
> +    strstr(filename, "://")) {
> +     //fix filenames with special characters 
> +     escfilename = malloc(strlen(filename)*4);

IMHO this should be
escfilename = malloc(strlen(filename)*3 + 1);
like in libmpdemux/http.c

> +     url_escape_string(escfilename,filename);
> +     mp_msg(MSGT_OPEN,MSGL_V,"Filename for url is now %s\n",escfilename);
> +     url = url_new(escfilename);
> +    }

-- 
Jonas Jensen <jbj at knef.dk>




More information about the MPlayer-cvslog mailing list