diff -bruN xcdroast-0.98alpha14.orig/src/init.c xcdroast-0.98alpha14/src/init.c --- xcdroast-0.98alpha14.orig/src/init.c Tue May 27 22:30:54 2003 +++ xcdroast-0.98alpha14/src/init.c Tue Jul 15 10:57:16 2003 @@ -778,6 +778,8 @@ /* Misc-init-stuff. stuff done once at program-startup */ /* return 0 if config file ok loaded, 1 on failure */ +gchar security_key[MAXLINE]; + gint init(gint argc, gchar *argv[], gint *nonrootmode, gint *altdevscan) { gchar tmp[MAXLINE]; gchar *p1; @@ -1131,9 +1133,9 @@ #if defined(HAVE_SETENV) && HAVE_SETENV == 1 setenv("CDR_SECURITY", setupdata.ProDVDkey, 1); #else - g_snprintf(tmp,MAXLINE,"CDR_SECURITY=%s", + g_snprintf(security_key,MAXLINE,"CDR_SECURITY=%s", setupdata.ProDVDkey); - putenv(tmp); + putenv(security_key); #endif } } diff -bruN xcdroast-0.98alpha14.orig/src/setup.c xcdroast-0.98alpha14/src/setup.c --- xcdroast-0.98alpha14.orig/src/setup.c Tue May 27 21:39:26 2003 +++ xcdroast-0.98alpha14/src/setup.c Tue Jul 15 10:57:10 2003 @@ -166,10 +166,12 @@ /* calculate all setup-data before leaving setup-menu */ +extern gchar security_key[MAXLINE]; + static gint menu_setup_ok_work(GtkWidget *widget, gpointer data) { gint i, n; gchar *rowdata[2]; -gchar tmp[MAXLINE], tmp2[MAXLINE]; +gchar tmp[MAXLINE]; gchar *buf, *locreturn, *p; dodebug(8, "confirming setup\n"); @@ -264,12 +266,12 @@ } else { setupdata.ProDVDkey = g_strdup(tmp); } - g_snprintf(tmp2,MAXLINE,"CDR_SECURITY=%s", setupdata.ProDVDkey); + g_snprintf(security_key,MAXLINE,"CDR_SECURITY=%s", setupdata.ProDVDkey); #if defined(HAVE_SETENV) && HAVE_SETENV == 1 setenv("CDR_SECURITY", setupdata.ProDVDkey, 1); #else - putenv(tmp2); + putenv(security_key); #endif /* save the current window size if we are asked to */