From bb6c728e76ef475558902f48d4706fc8ba4c5a59 Mon Sep 17 00:00:00 2001 From: lvyuanyuan Date: Mon, 3 Jul 2023 07:52:32 +0000 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lvyuanyuan Change-Id: Ic02b1fc68eeef46fd2b6b967f2884f3cb2a7c276 --- interfaces/kits/js/file_share/grant_uri_permission.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/js/file_share/grant_uri_permission.cpp b/interfaces/kits/js/file_share/grant_uri_permission.cpp index 543ddb4c5..b287bf0b1 100644 --- a/interfaces/kits/js/file_share/grant_uri_permission.cpp +++ b/interfaces/kits/js/file_share/grant_uri_permission.cpp @@ -61,7 +61,7 @@ namespace ModuleFileShare { } } if (count == MEET_COUNT) { - str = str.substr(0, index); + str.resize(index); } return str; } -- Gitee