summaryrefslogtreecommitdiffstats
path: root/Gui/interface.h
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-24 19:34:52 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-24 19:34:52 +0000
commitc31e49a4d5b199a0fb70d47837f9bf54001af340 (patch)
tree2f34ad16a07cb718b90c214cb1ef2c33d11c5929 /Gui/interface.h
parentbccc26f9737605fb568c4d216738aeda889eee78 (diff)
downloadmpv-c31e49a4d5b199a0fb70d47837f9bf54001af340.tar.bz2
mpv-c31e49a4d5b199a0fb70d47837f9bf54001af340.tar.xz
fix playtree bug. but ... i dont' see this ... bazmeg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4849 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/interface.h')
-rw-r--r--Gui/interface.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Gui/interface.h b/Gui/interface.h
index 0125ad9e06..d009cc7720 100644
--- a/Gui/interface.h
+++ b/Gui/interface.h
@@ -100,8 +100,9 @@ extern void guiInit( int argc,char* argv[], char *envp[] );
extern void guiGetEvent( int type,char * arg );
extern void guiEventHandling( void );
-#define guiSetFilename( s,n ) \
- { if ( s ) free( s ); s=NULL; s=strdup( n ); }
+#define gstrdup( s,ss ) { s=malloc( strlen( ss ) + 3 ); strcpy( s,ss ); }
+
+#define guiSetFilename( s,n ) { s=strdup( n ); }
#define guiSetDF( s,d,n ) \
{ \
@@ -110,4 +111,4 @@ extern void guiEventHandling( void );
sprintf( s,"%s/%s",d,n ); \
}
-#endif \ No newline at end of file
+#endif