diff options
Diffstat (limited to 'Alc/backends/null.c')
-rw-r--r-- | Alc/backends/null.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/null.c b/Alc/backends/null.c index 59299dff..6b59ef7a 100644 --- a/Alc/backends/null.c +++ b/Alc/backends/null.c @@ -120,7 +120,7 @@ static ALCenum ALCnullBackend_open(ALCnullBackend *self, const ALCchar *name) return ALC_INVALID_VALUE; device = STATIC_CAST(ALCbackend, self)->mDevice; - device->DeviceName = strdup(name); + al_string_copy_cstr(&device->DeviceName, name); return ALC_NO_ERROR; } |