mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
roll back change.
Signed-off-by: yudechen <chenyude@huawei.com> Change-Id: Idde0118a6ac1898170f933171b4b41248a0b7c22
This commit is contained in:
+1
-1
@@ -584,7 +584,7 @@ int32_t SeparateSyscapFromString(const char *inputString, uint32_t *osArray, uin
|
||||
// get os syscap data
|
||||
for (i = 0; i < PCID_OUT_BUFFER; i++) {
|
||||
ret = sscanf_s(input, "%u,%s", &osArray[i], input, inputLen);
|
||||
if (ret != 2) { // 2, sscanf_s return value
|
||||
if (ret == -1) {
|
||||
PRINT_ERR("sscanf_s failed.\n");
|
||||
free(input);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user