Skip to content

Commit

Permalink
Restyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Nov 17, 2021
1 parent 50a9c88 commit 0c73035
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform/Darwin/DnssdImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,9 @@ static CHIP_ERROR GetAddrInfo(void * context, DnssdResolveCallback callback, uin
// Truncation, but nothing better we can do
valueLen = sizeof(value) - 1;
}
if (valueLen > 1) {
memcpy(value, valuePtr, valueLen - 1);
if (valueLen > 1)
{
memcpy(value, valuePtr, valueLen - 1);
}
value[valueLen] = 0;

Expand Down

0 comments on commit 0c73035

Please sign in to comment.