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:
Michael Gernoth 2004-11-03 10:05:02 +00:00
parent 3f3d20552e
commit 4ad6d8d4e0
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)