aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/opensl.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-28 22:11:34 -0700
committerChris Robinson <[email protected]>2014-03-28 22:11:34 -0700
commit7b93e10f7a24b7e18c916b0f791d9998f9b4b800 (patch)
tree204d07479d2f25e4170edfc80c68c810826384b2 /Alc/backends/opensl.c
parent7570195b0973770e2b19551399fcf0e4d3b81a21 (diff)
Use an al_string for the device name
Diffstat (limited to 'Alc/backends/opensl.c')
-rw-r--r--Alc/backends/opensl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/opensl.c b/Alc/backends/opensl.c
index 619c9847..220e6e5c 100644
--- a/Alc/backends/opensl.c
+++ b/Alc/backends/opensl.c
@@ -193,7 +193,7 @@ static ALCenum opensl_open_playback(ALCdevice *Device, const ALCchar *deviceName
return ALC_INVALID_VALUE;
}
- Device->DeviceName = strdup(deviceName);
+ al_string_copy_cstr(&Device->DeviceName, deviceName);
Device->ExtraData = data;
return ALC_NO_ERROR;