aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-02-24 04:53:32 -0800
committerChris Robinson <[email protected]>2016-02-24 04:53:32 -0800
commitb6824ca7168d20e7aada4b45a32aa93f48fc689c (patch)
tree2bb03d869200b65926c876f2d74cebe4db4f007d /Alc/hrtf.c
parentd04970e568de8747a152db1ab036bbbfbf70f7f1 (diff)
Add and use a copy-range string function
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index 9436ee55..49c9793b 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -583,10 +583,7 @@ static void AddFileEntry(vector_HrtfEntry *list, al_string *filename)
if(!ext)
al_string_copy_cstr(&entry.name, name);
else
- {
- al_string_clear(&entry.name);
- al_string_append_range(&entry.name, name, ext);
- }
+ al_string_copy_range(&entry.name, name, ext);
if(i != 0)
{
char str[64];