From 7b93e10f7a24b7e18c916b0f791d9998f9b4b800 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 28 Mar 2014 22:11:34 -0700 Subject: Use an al_string for the device name --- Alc/backends/opensl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/backends/opensl.c') 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; -- cgit v1.2.3