update src/syscap_tool.c.

Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
This commit is contained in:
tongkai0808fh
2024-05-18 02:34:31 +00:00
committed by Gitee
parent 00405cac9a
commit 98786eb1bc
+1 -1
View File
@@ -507,7 +507,7 @@ char *CopyInputString(const char *inputString)
PRINT_ERR("inputString is empty.\n");
inputString == NULL;
return NULL;
}}
}
size_t inputLen = strlen(inputString);
if (inputLen > STRING_FORMAT_LEN_MAX) {
PRINT_ERR("input string too long(%zu).\n", inputLen);