fix: 内源检视问题修复
Signed-off-by: arvinzzz <zhaotianyu9@huawei.com> Change-Id: I7c0b8f4026d8fbd4b0d985d4ce82187e56f1d6ec
This commit is contained in:
@@ -40,7 +40,7 @@ static UINT32 Testcase(VOID)
|
||||
int nType;
|
||||
char pathname[50]; // 50, path name buffer size
|
||||
FILE *testFile;
|
||||
strncpy(pathname, g_ioTestPath, 50); // 50, path name buffer size
|
||||
(void)strncpy_s(pathname, 50, g_ioTestPath, 50); // 50, path name buffer size
|
||||
char *filename = "/crtfputwstest1";
|
||||
strcat(pathname, filename);
|
||||
for (nType = 0; nType < 6; nType++) { // 6, test loop num
|
||||
|
||||
@@ -37,7 +37,7 @@ static UINT32 Testcase(VOID)
|
||||
unsigned int nPos;
|
||||
int ret;
|
||||
char pathname[50]; // 50, enough space.
|
||||
strncpy(pathname, g_ioTestPath, sizeof(pathname));
|
||||
(void)strncpy_s(pathname, sizeof(pathname), g_ioTestPath, sizeof(pathname));
|
||||
char *filename = "/crt_getc_unlocked_test1";
|
||||
FILE *testFile = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user