From 39deb1e14f9fcc4e3820e8ae861fb8d14ad8a310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A6=E5=9B=BD=E5=BA=86?= Date: Sun, 28 Apr 2024 16:51:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E5=91=8A=E8=AD=A6=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 韦国庆 --- common/src/daudio_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/daudio_util.cpp b/common/src/daudio_util.cpp index 169fb685..2f0cbc87 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) { -- Gitee