aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-14 08:51:45 -0800
committerChris Robinson <[email protected]>2007-12-14 08:51:45 -0800
commit5f4659534abfc3a27cdae32606f699f189275ec8 (patch)
tree93a9e9978b28d1548b880c7169fb53ba161f0a31 /Alc/oss.c
parent5da394ab617ab7d11e5b11610bb8dd83033e3920 (diff)
Store a persistant name string with the device struct
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/oss.c b/Alc/oss.c
index e1aba0b3..3742d83f 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -124,12 +124,10 @@ static ALCboolean oss_open_playback(ALCdevice *device, const ALCchar *deviceName
{
if(strcmp(deviceName, oss_device))
return ALC_FALSE;
+ device->szDeviceName = oss_device;
}
-
- if(deviceName)
- strcpy(device->szDeviceName, deviceName);
else
- strcpy(device->szDeviceName, oss_device);
+ device->szDeviceName = oss_device;
data = (oss_data*)calloc(1, sizeof(oss_data));
data->killNow = 0;