diff options
author | Chris Robinson <[email protected]> | 2007-12-14 08:51:45 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-14 08:51:45 -0800 |
commit | 5f4659534abfc3a27cdae32606f699f189275ec8 (patch) | |
tree | 93a9e9978b28d1548b880c7169fb53ba161f0a31 /Alc/oss.c | |
parent | 5da394ab617ab7d11e5b11610bb8dd83033e3920 (diff) |
Store a persistant name string with the device struct
Diffstat (limited to 'Alc/oss.c')
-rw-r--r-- | Alc/oss.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; |