From 64c54dbda705ae63ffaca525dd0da6086b28bc56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BE=E5=86=AC=E6=B4=8B?= Date: Thu, 31 Jul 2025 03:06:51 +0000 Subject: [PATCH] create_randomaccessfile_core.cpp add empty lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 顾冬洋 --- .../js/src/mod_fs/properties/create_randomaccessfile_core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/interfaces/kits/js/src/mod_fs/properties/create_randomaccessfile_core.cpp b/interfaces/kits/js/src/mod_fs/properties/create_randomaccessfile_core.cpp index d7d99779d..8eb07cc7a 100644 --- a/interfaces/kits/js/src/mod_fs/properties/create_randomaccessfile_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/create_randomaccessfile_core.cpp @@ -37,6 +37,7 @@ static tuple ParseStringToFileInfo(const string &path) close(sfd); return { false, FileInfo { false, nullptr, nullptr }, ENOMEM}; } + size_t length = path.length() + 1; auto chars = std::make_unique(length); auto ret = strncpy_s(chars.get(), length, path.c_str(), length - 1); -- Gitee