aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
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;