Diff between 53b22f4480e49e7711eb477e2c2312670067f0a0 and b1e91f779f41e1e74520ac6d1be898cf846a778f
Changed Files
| File | Additions | Deletions | Status |
| android/gatt.c | +1 | -1 | modified |
Full Patch
diff --git a/android/gatt.c b/android/gatt.c
index ae0a2c7..3019cd5 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -6062,7 +6062,7 @@ static void gatt_srvc_change_read_cb(uint16_t handle, uint16_t offset,
ccc = bt_get_gatt_ccc(&dev->bdaddr);
entry->state = REQUEST_DONE;
- entry->value = (uint8_t *) new0(uint16_t, 1);
+ entry->value = new0(uint8_t, 2);
if (!entry->value) {
entry->error = ATT_ECODE_INSUFF_RESOURCES;