Skip to content

Commit

Permalink
Update src/credentials/GroupDataProviderImpl.h
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
woody-apple and bzbarsky-apple authored Jan 27, 2022
1 parent 680e288 commit 73edd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/credentials/GroupDataProviderImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class GroupDataProviderImpl : public GroupDataProvider
void SetKey(const ByteSpan & key, uint16_t hash)
{
mKeyHash = hash;
memcpy(mKeyValue, key.data(), std::min(key.size(), Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES));
memcpy(mKeyValue, key.data(), std::min(key.size(), sizeof(mKeyValue));
}

uint16_t GetKeyHash() override { return mKeyHash; }
Expand Down

0 comments on commit 73edd71

Please sign in to comment.