strdup the audio-device
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@793 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
3f3d20552e
commit
4ad6d8d4e0
@ -50,7 +50,7 @@ wave_out_open(void)
|
||||
|
||||
if (dsp_dev == NULL)
|
||||
{
|
||||
dsp_dev = "/dev/dsp";
|
||||
dsp_dev = strdup("/dev/dsp");
|
||||
}
|
||||
|
||||
if ((g_dsp_fd = open(dsp_dev, O_WRONLY | O_NONBLOCK)) == -1)
|
||||
|
@ -54,7 +54,7 @@ wave_out_open(void)
|
||||
|
||||
if (dsp_dev == NULL)
|
||||
{
|
||||
dsp_dev = "/dev/audio";
|
||||
dsp_dev = strdup("/dev/audio");
|
||||
}
|
||||
|
||||
if ((g_dsp_fd = open(dsp_dev, O_WRONLY | O_NONBLOCK)) == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user