aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/hrtf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/hrtf.cpp b/Alc/hrtf.cpp
index 668e5b24..2584ef13 100644
--- a/Alc/hrtf.cpp
+++ b/Alc/hrtf.cpp
@@ -1101,7 +1101,8 @@ void AddFileEntry(al::vector<EnumeratedHrtf> &list, const std::string &filename)
LoadedHrtfs.emplace_back(HrtfHandle::Create(filename.length()+1));
loaded_entry = LoadedHrtfs.end()-1;
- strcpy((*loaded_entry)->filename.data(), filename.c_str());
+ std::copy(filename.begin(), filename.end(), (*loaded_entry)->filename.begin());
+ (*loaded_entry)->filename.back() = '\0';
}
/* TODO: Get a human-readable name from the HRTF data (possibly coming in a