diff options
Diffstat (limited to 'Alc/backends/wave.c')
-rw-r--r-- | Alc/backends/wave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/wave.c b/Alc/backends/wave.c index 2209c798..f6bedc08 100644 --- a/Alc/backends/wave.c +++ b/Alc/backends/wave.c @@ -191,7 +191,7 @@ static ALCenum wave_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; } |