From f816a75ca5b357563a4ecf996e95b24ffabd0b54 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Thu, 23 Jun 2011 18:40:11 +0200 Subject: Fix -audio and -no-audio processing. Turns out that the string passed to putenv() must not be modified :-/ We provide our own win32 implementation for emulator-ui that doesn't embed the os-win32.c QEMU-specific file. Change-Id: I7260fbc37d23a5340dab589dfde577ef5eb10005 --- vl-android.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'vl-android.c') diff --git a/vl-android.c b/vl-android.c index 8436d68..32b5eac 100644 --- a/vl-android.c +++ b/vl-android.c @@ -3721,13 +3721,11 @@ int main(int argc, char **argv, char **envp) /* Initialize audio. */ if (android_op_audio) { - char temp[128]; if ( !audio_check_backend_name( 0, android_op_audio ) ) { PANIC("'%s' is not a valid audio output backend. see -help-audio-out", android_op_audio); } - snprintf(temp, sizeof temp, "QEMU_AUDIO_DRV=%s", android_op_audio); - putenv(temp); + setenv("QEMU_AUDIO_DRV", android_op_audio, 1); } /* Initialize OpenGLES emulation */ -- cgit v1.1