Skip to content

Commit

Permalink
Fix obscurity.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuscu committed Nov 16, 2024
1 parent 62916f6 commit 9636229
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/logging/source/common/String.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,10 @@ namespace l::string {
std::string rc(str.size() / 2, '0');
char* buf = const_cast<char*>(str.data());
for (size_t i = 0; i < str.size() / 2; i++) {
rc[i] = convertToOctet(*buf++, true) | convertToOctet(*buf++, false);
rc[i] = convertToOctet(*buf, true);
buf++;
rc[i] |= convertToOctet(*buf, false);
buf++;
}
return rc;
}
Expand Down

0 comments on commit 9636229

Please sign in to comment.