非安全函数告警清理
Signed-off-by: xuxinyu <xuxinyu6@huawei.com> Change-Id: I45bbaa3568be3679b34b1e8b072d19d878fdbf02
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user