diff --git a/common/src/daudio_util.cpp b/common/src/daudio_util.cpp index 169fb685157b194f2fe52d3338fcc968a0a8405f..2f0cbc87bccadc690061bc3ba53a352576dc8da4 100644 --- a/common/src/daudio_util.cpp +++ b/common/src/daudio_util.cpp @@ -553,7 +553,7 @@ bool IsParamEnabled(const std::string &key, bool &isEnabled) return false; } -void SaveFile(std::string fileName, uint8_t *audioData, int32_t size) +void SaveFile(const std::string fileName, uint8_t *audioData, int32_t size) { char path[PATH_MAX + 1] = {0x00}; if (fileName.length() > PATH_MAX || realpath(fileName.c_str(), path) == nullptr) {