diff options
author | Chris Robinson <[email protected]> | 2014-03-28 22:11:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-28 22:11:34 -0700 |
commit | 7b93e10f7a24b7e18c916b0f791d9998f9b4b800 (patch) | |
tree | 204d07479d2f25e4170edfc80c68c810826384b2 /Alc/backends/qsa.c | |
parent | 7570195b0973770e2b19551399fcf0e4d3b81a21 (diff) |
Use an al_string for the device name
Diffstat (limited to 'Alc/backends/qsa.c')
-rw-r--r-- | Alc/backends/qsa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/backends/qsa.c b/Alc/backends/qsa.c index c9762f85..d9d7c87b 100644 --- a/Alc/backends/qsa.c +++ b/Alc/backends/qsa.c @@ -343,8 +343,8 @@ static ALCenum qsa_open_playback(ALCdevice* device, const ALCchar* deviceName) return ALC_INVALID_DEVICE; } - device->DeviceName=strdup(deviceName); - device->ExtraData=data; + al_string_copy_cstr(&device->DeviceName, deviceName); + device->ExtraData = data; return ALC_NO_ERROR; } @@ -711,8 +711,8 @@ static ALCenum qsa_open_capture(ALCdevice* device, const ALCchar* deviceName) return ALC_INVALID_DEVICE; } - device->DeviceName=strdup(deviceName); - device->ExtraData=data; + al_string_copy_cstr(&device->DeviceName, deviceName); + device->ExtraData = data; switch (device->FmtType) { |