Commit 6fd0d171 authored by Stéphane Borel's avatar Stéphane Borel

-replaced setenv with putenv

-fixed a bug in gtk.
parent 1eb6c844
......@@ -8,7 +8,7 @@
* -dvd_udf to find files
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: input_dvd.c,v 1.127 2002/03/04 01:53:56 stef Exp $
* $Id: input_dvd.c,v 1.128 2002/03/04 02:26:23 stef Exp $
*
* Author: Stphane Borel <stef@via.ecp.fr>
*
......@@ -372,7 +372,12 @@ static int DVDOpen( struct input_thread_s *p_input )
{
if( *psz_raw )
{
setenv( "DVDCSS_RAW_DEVICE", psz_raw, 1 );
char * psz_env;
psz_env = malloc( strlen("DVDCSS_RAW_DEVICE=")
+ strlen( psz_raw ) + 1 );
sprintf( psz_env, "DVDCSS_RAW_DEVICE=%s", psz_raw );
fprintf(stderr, "%s\n", psz_env );
putenv( psz_env );
}
else
{
......
......@@ -2,7 +2,7 @@
* gtk_open.c : functions to handle file/disc/network open widgets.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_open.c,v 1.17 2002/03/04 01:53:56 stef Exp $
* $Id: gtk_open.c,v 1.18 2002/03/04 02:26:23 stef Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
......@@ -201,7 +201,6 @@ void GtkDiscOpenOk( GtkButton * button, gpointer user_data )
else
{
intf_ErrMsg( "intf error: unknown disc type toggle button position" );
free( psz_source );
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment