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

Merge pull request !1104 from yinjiaming/fix
This commit is contained in:
openharmony_ci 2023-02-06 12:08:27 +00:00 committed by Gitee
commit 58610ea87c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ STATIC UINT32 g_currentUtsContainerNum;
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) {
return LOS_NOK;
}