未验证 提交 58610ea8 编写于 作者: O openharmony_ci 提交者: Gitee

!1104 Fix : 修复使用无符号数接收sprintf_s的结果

Merge pull request !1104 from yinjiaming/fix
...@@ -38,7 +38,7 @@ STATIC UINT32 g_currentUtsContainerNum; ...@@ -38,7 +38,7 @@ STATIC UINT32 g_currentUtsContainerNum;
STATIC UINT32 InitUtsContainer(struct utsname *name) STATIC UINT32 InitUtsContainer(struct utsname *name)
{ {
UINT32 ret = sprintf_s(name->sysname, sizeof(name->sysname), "%s", KERNEL_NAME); INT32 ret = sprintf_s(name->sysname, sizeof(name->sysname), "%s", KERNEL_NAME);
if (ret < 0) { if (ret < 0) {
return LOS_NOK; return LOS_NOK;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册