Diff between 11dcc9bf0dba61c83269fb3cf234579d6f9ef192 and 755091581336dd6b6a710e599da9e1e52037851a
Changed Files
| File | Additions | Deletions | Status |
| src/settings.c | +1 | -1 | modified |
Full Patch
diff --git a/src/settings.c b/src/settings.c
index b61e694..643a083 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;
}