summaryrefslogtreecommitdiffstats
path: root/Gui/interface.h
diff options
context:
space:
mode:
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