diff options
author | Chris Robinson <[email protected]> | 2018-11-15 06:23:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-15 06:23:01 -0800 |
commit | 7b3a2085aac8eac47f9968f331d3991167793e85 (patch) | |
tree | 5566b15f7a90fe8e0fb2b280c4f8b83c80247f4f /Alc/backends/null.cpp | |
parent | ab9f8162b84870161948ddd27d29483206dd4e57 (diff) |
Use a regular char* for the device's name
Diffstat (limited to 'Alc/backends/null.cpp')
-rw-r--r-- | Alc/backends/null.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/backends/null.cpp b/Alc/backends/null.cpp index c8523c88..30d80b76 100644 --- a/Alc/backends/null.cpp +++ b/Alc/backends/null.cpp @@ -141,7 +141,8 @@ static ALCenum ALCnullBackend_open(ALCnullBackend *self, const ALCchar *name) return ALC_INVALID_VALUE; device = STATIC_CAST(ALCbackend, self)->mDevice; - alstr_copy_cstr(&device->DeviceName, name); + al_free(device->DeviceName); + device->DeviceName = alstrdup(name); return ALC_NO_ERROR; } |