Message ID | 20240709143503.12142-4-r.smirnov@omp.ru (mailing list archive) |
---|---|
State | Accepted |
Commit | 755091581336dd6b6a710e599da9e1e52037851a |
Headers | show |
Series | fix errors found by SVACE static analyzer #3 | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | success | CheckPatch PASS |
tedd_an/GitLint | success | Gitlint PASS |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
diff --git a/src/settings.c b/src/settings.c index b61e694f1..643a083db 100644 --- a/src/settings.c +++ b/src/settings.c @@ -193,7 +193,7 @@ static int load_service(struct gatt_db *db, char *handle, char *value) return -EIO; } - if (sscanf(value, "%[^:]:%04hx:%36s", type, &end, uuid_str) != 3) { + if (sscanf(value, "%36[^:]:%04hx:%36s", type, &end, uuid_str) != 3) { DBG("Failed to parse value: %s", value); return -EIO; }