diff options
author | Chris Robinson <[email protected]> | 2014-09-30 21:49:29 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-09-30 21:49:29 -0700 |
commit | af7330de881dd165a37c6753269a7bec1c27f85a (patch) | |
tree | 4a34962f020c4c563603a13b7b05666f33eecc70 /Alc/ALc.c | |
parent | d82d6c701ddb1c392606929695d6b96cfa70e3c1 (diff) |
Copy the null terminator from the string instead of appending it
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); } |