Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69f1f81c authored by Scott Bauer's avatar Scott Bauer Committed by android-build-merger
Browse files

Merge "Read the correct amount of attributes" into oc-dev

am: 494c6974

Change-Id: I633e4d7fbcb48387ca092e5e19a6f5c0ba015072
parents 25da59e5 494c6974
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1464,7 +1464,7 @@ bool bta_gattc_cache_load(tBTA_GATTC_CLCB* p_clcb) {

  attr = (tBTA_GATTC_NV_ATTR*)osi_malloc(sizeof(tBTA_GATTC_NV_ATTR) * num_attr);

  if (fread(attr, sizeof(tBTA_GATTC_NV_ATTR), 0xFF, fd) != num_attr) {
  if (fread(attr, sizeof(tBTA_GATTC_NV_ATTR), num_attr, fd) != num_attr) {
    APPL_TRACE_ERROR("%s: can't read GATT attributes: %s", __func__, fname);
    goto done;
  }