diff --git a/features/storage/kvstore/tdbstore/TDBStore.cpp b/features/storage/kvstore/tdbstore/TDBStore.cpp index eda5867e20d..24d797f0d5b 100644 --- a/features/storage/kvstore/tdbstore/TDBStore.cpp +++ b/features/storage/kvstore/tdbstore/TDBStore.cpp @@ -1418,7 +1418,7 @@ int TDBStore::do_reserved_data_get(void *reserved_data, size_t reserved_data_buf while (actual_size) { uint32_t chunk = std::min(work_buf_size, (uint32_t) actual_size); - ret = read_area(_active_area, offset, chunk, buf); + ret = read_area(_active_area, offset, chunk, buf + offset); if (ret) { return ret; }