From e89795c0b06adeb5e6cc2bef0fa4b767589f9e63 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Sat, 9 Nov 2024 11:33:55 +0800 Subject: [PATCH] =?utf8?q?=E7=B3=BB=E7=BB=9F=EF=BC=9A=E4=BF=AE=E5=A4=8Dvot?= =?utf8?q?e=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../debug_output_notification/debug_output_notification.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp index 4af0518bc..a02b1c04a 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp @@ -607,7 +607,7 @@ namespace OHOS std::string DebugOutputViewEventListener::get_current_vote_status() { // 获取系统日志实例 char buf[256]; - get_vote_status(buf); + get_vote_status(buf,sizeof(buf)); return std::string(buf); } -- 2.17.1