From 4174654bddac6f2d43b966009f5119068e02b934 Mon Sep 17 00:00:00 2001 From: yinjiaming Date: Wed, 1 Feb 2023 10:45:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=97=A0=E7=AC=A6=E5=8F=B7=E6=95=B0=E6=8E=A5=E6=94=B6sprintf?= =?UTF-8?q?=5Fs=E7=9A=84=E7=BB=93=E6=9E=9C=E7=9A=84=E9=97=AE=E9=A2=98=20sp?= =?UTF-8?q?rintf=5Fs=E7=9A=84=E8=BF=94=E5=9B=9E=E5=80=BC=E6=98=AF=E6=9C=89?= =?UTF-8?q?=E7=AC=A6=E5=8F=B7=E6=95=B0=EF=BC=8C=E5=BA=94=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=9C=89=E7=AC=A6=E5=8F=B7=E6=95=B0=E6=9D=A5=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yinjiaming Change-Id: Icb1248e0a75a77c1258f64dfa25eef0a7f5dd14e --- kernel/base/container/los_uts_container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/base/container/los_uts_container.c b/kernel/base/container/los_uts_container.c index 7bc91d2b..2919dde4 100644 --- a/kernel/base/container/los_uts_container.c +++ b/kernel/base/container/los_uts_container.c @@ -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; }