非安全函数告警清理

Signed-off-by: xuxinyu <xuxinyu6@huawei.com>
Change-Id: I45bbaa3568be3679b34b1e8b072d19d878fdbf02
This commit is contained in:
xuxinyu
2022-08-25 20:50:48 +08:00
parent 14e64fc89b
commit a0b776a709
7 changed files with 21 additions and 28 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ STATIC DynSharedObj *OsLoadInit(const CHAR *fileName, VOID *pool)
goto ERR2;
}
strcpy(dso->buf, fileName);
(void)strcpy_s(dso->buf, nameLen + 1, fileName);
dso->fileName = dso->buf;
dso->ref = 1;
dso->pool = (pool ? pool : OS_SYS_MEM_ADDR);