fix: 内源检视问题修复

Signed-off-by: arvinzzz <zhaotianyu9@huawei.com>
Change-Id: I7c0b8f4026d8fbd4b0d985d4ce82187e56f1d6ec
This commit is contained in:
arvinzzz
2022-03-18 16:06:23 +08:00
parent e4cad073a9
commit 47fac7158e
262 changed files with 1769 additions and 1798 deletions

View File

@@ -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

View File

@@ -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;