1 Star 0 Fork 10

jinlun/dim_9

forked from src-openEuler/dim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-fix-build-error.patch 803 Bytes
一键复制 编辑 原始数据 按行查看 历史
jinlun 提交于 2024-04-16 10:12 . backport some patches
From 0140b4eb57f2c434fed5357944bacb76a66c92ea Mon Sep 17 00:00:00 2001
From: Huaxin Lu <luhuaxin1@huawei.com>
Date: Fri, 9 Feb 2024 19:39:40 +0800
Subject: [PATCH 11/26] fix build error
---
src/common/dim_baseline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/dim_baseline.c b/src/common/dim_baseline.c
index 4733705..09a2780 100644
--- a/src/common/dim_baseline.c
+++ b/src/common/dim_baseline.c
@@ -105,7 +105,7 @@ int dim_baseline_add(struct dim_baseline_tree *root, const char *name,
goto err;
strncpy((char *)baseline->name, name, buf_len - 1);
- baseline->name[buf_len - 1] = '\0';
+ ((char *)baseline->name)[buf_len - 1] = '\0';
write_lock(&root->lock);
ret = dim_baseline_rb_add(&root->rb_root, baseline, NULL);
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jinlun123123/dim_9.git
git@gitee.com:jinlun123123/dim_9.git
jinlun123123
dim_9
dim_9
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385