代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/dim 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From ee0e50754cb5bf5943d4f16508725b3f65931f24 Mon Sep 17 00:00:00 2001
From: lixiang_yewu <lixiang_yewu@cmss.chinamobile.com>
Date: Tue, 2 Jan 2024 02:27:55 +0000
Subject: [PATCH 09/26] update src/common/dim_baseline.c.
Signed-off-by: lixiang_yewu <lixiang_yewu@cmss.chinamobile.com>
update src/common/dim_baseline.c.
Signed-off-by: lixiang_yewu <lixiang_yewu@cmss.chinamobile.com>
---
src/common/dim_baseline.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/common/dim_baseline.c b/src/common/dim_baseline.c
index 6369d7b..4733705 100644
--- a/src/common/dim_baseline.c
+++ b/src/common/dim_baseline.c
@@ -104,7 +104,8 @@ int dim_baseline_add(struct dim_baseline_tree *root, const char *name,
if (ret < 0)
goto err;
- strcpy((char *)baseline->name, name);
+ strncpy((char *)baseline->name, name, buf_len - 1);
+ baseline->name[buf_len - 1] = '\0';
write_lock(&root->lock);
ret = dim_baseline_rb_add(&root->rb_root, baseline, NULL);
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。