From a05873e600ff8a18279f032bce743e53049b26c4 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Wed, 25 Sep 2024 17:31:43 +0800 Subject: [PATCH] =?utf8?q?#624=20=E7=9F=AD=E4=BF=A1=E6=B6=88=E6=81=AF?= =?utf8?q?=E6=8E=A8=E9=80=81=E6=9C=89=E6=98=BE=E7=A4=BA=E7=A9=BA=E7=99=BD?= =?utf8?q?=E7=8E=B0=E8=B1=A1=EF=BC=88=E4=BD=BF=E7=94=A8=E7=9A=84=E6=98=AFI?= =?utf8?q?OS=E6=89=8B=E6=9C=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../service/ble_service/bleservice/bleANCS.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c index 1bafd01d5..18e083e8c 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleANCS.c @@ -312,24 +312,24 @@ static void ble_ancs_client_notification_attr_rsp_cbk(uint8_t client_id, uint16_ ble_ancs_attr_rsp_t *node = (ble_ancs_attr_rsp_t *)notify_attr_rsp->attr_rsp_lst.head; uint16_t att_num = 1; - char title_buf[256]={0}; - char msg_buf[256]={0}; - char app_buf[32]={0}; + char title_buf[300]={0}; + char msg_buf[300]={0}; + char app_buf[70]={0}; while (node != NULL) { if (node != NULL) { printf("[ANCSClientNotifyATTRSPCBK]att id:%d length:%lu att_value:%s\r\n", node->att_id, node->att_length, node->att); if( node->att_id==1) { - sprintf_s(title_buf,256,"%s",node->att); + sprintf_s(title_buf,300,"%s",node->att); } if(node->att_id==3) { - sprintf_s(msg_buf,256,"%s",node->att); + sprintf_s(msg_buf,300,"%s",node->att); } if(node->att_id==0) { - sprintf_s(app_buf,64,"%s",node->att); + sprintf_s(app_buf,70,"%s",node->att); } } node = lnext(node); -- 2.17.1