提交 fb934486 编写于 作者: N nan-xiansen 提交者: 南先森

fixed 98f6c895 from https://gitee.com/nan-xiansen/xts_acts/pulls/6811

【startup_lite】用例优化
Signed-off-by: Nnan-xiansen <nanjinbin@huawei.com>
Change-Id: Ia78e19fdfa5dc83147ae4cbc646d415b6623af64
上级 8df55756
......@@ -477,7 +477,7 @@ LITE_TEST_CASE(DeviceInfoFuncTestSuite,
TEST_ASSERT_TRUE(day <= 31 && day > 0);
char str[10] = {0};
ret = sprintf_s(str, strlen(str), "%d-%02d-%02d", year, month, day);
ret = sprintf_s(str, sizeof(str) + 1, "%d-%02d-%02d", year, month, day);
if (ret < RET_SUCCESS)
{
TEST_ASSERT_TRUE(ret >= 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册