aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/oss.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/oss.c
parent7570195b0973770e2b19551399fcf0e4d3b81a21 (diff)
Use an al_string for the device name
Diffstat (limited to 'Alc/backends/oss.c')
-rw-r--r--Alc/backends/oss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/oss.c b/Alc/backends/oss.c
index 54c487a4..f0532cdf 100644
--- a/Alc/backends/oss.c
+++ b/Alc/backends/oss.c
@@ -168,7 +168,7 @@ static ALCenum ALCplaybackOSS_open(ALCplaybackOSS *self, const ALCchar *name)
return ALC_INVALID_VALUE;
}
- device->DeviceName = strdup(name);
+ al_string_copy_cstr(&device->DeviceName, name);
return ALC_NO_ERROR;
}
@@ -491,7 +491,7 @@ static ALCenum ALCcaptureOSS_open(ALCcaptureOSS *self, const ALCchar *name)
return ALC_OUT_OF_MEMORY;
}
- device->DeviceName = strdup(name);
+ al_string_copy_cstr(&device->DeviceName, name);
return ALC_NO_ERROR;
}