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/alsa.c | |
parent | 7570195b0973770e2b19551399fcf0e4d3b81a21 (diff) |
Use an al_string for the device name
Diffstat (limited to 'Alc/backends/alsa.c')
-rw-r--r-- | Alc/backends/alsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c index 51965cec..106e788e 100644 --- a/Alc/backends/alsa.c +++ b/Alc/backends/alsa.c @@ -647,7 +647,7 @@ static ALCenum ALCplaybackAlsa_open(ALCplaybackAlsa *self, const ALCchar *name) /* Free alsa's global config tree. Otherwise valgrind reports a ton of leaks. */ snd_config_update_free_global(); - device->DeviceName = strdup(name); + al_string_copy_cstr(&device->DeviceName, name); return ALC_NO_ERROR; } @@ -1052,7 +1052,7 @@ static ALCenum ALCcaptureAlsa_open(ALCcaptureAlsa *self, const ALCchar *name) } } - device->DeviceName = strdup(name); + al_string_copy_cstr(&device->DeviceName, name); return ALC_NO_ERROR; |