[MPlayer-dev-eng] [PATCH] gmplayer fsFileSelect related fixes

Sergey Pinaev dfo at antex.ru
Mon Apr 9 13:29:36 CEST 2007


On Mon, 9 Apr 2007 06:51:39 -0400
Rich Felker <dalias at aerifal.cx> wrote:

> > > > (btw, afaiu get_current_dir_name() returns malloc()ed string, that should
> > > > be free()d too)
> > > 
> > > If so then that should be fixed..
> > 
> >        get_current_dir_name,  which  is  only  prototyped  if  _GNU_SOURCE  is
> >        defined, will malloc(3) an array big enough to hold the current  direc-
> >        tory  name.
> 
> Uhg, so this is some nasty glibcism? Replace it with something
> portable then, like getcwd().

gui uses gtk/glib, so for consistency it should use g_get_current_dir() =)

-- 
mail="Sergey Pinaev <dfo at antex.ru>"
url="http://`echo $mail | sed 's/.* <\(.*\)@\(.*\)>/\1.\2/'`"



More information about the MPlayer-dev-eng mailing list