aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index fdc7bcbf..6a0a1ed0 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1266,10 +1266,7 @@ static void AppendDevice(const ALCchar *name, al_string *devnames)
{
size_t len = strlen(name);
if(len > 0)
- {
- al_string_append_range(devnames, name, name+len);
- al_string_append_char(devnames, '\0');
- }
+ al_string_append_range(devnames, name, name+len+1);
}
void AppendAllDevicesList(const ALCchar *name)
{ AppendDevice(name, &alcAllDevicesList); }