Skip to content

Commit

Permalink
Fix GCC warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Oct 22, 2024
1 parent 26fae1e commit f7971e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/sig_subpacket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bool
Raw::parse(const uint8_t *data, size_t size)
{
if (!check_size(size)) {
RNP_LOG("wrong len %zu of subpacket type %" PRIu8, size, type_);
RNP_LOG("wrong len %zu of subpacket type %" PRIu8, size, raw_type_);
return false;
}
if (!parse_data(data, size)) {
Expand Down Expand Up @@ -494,7 +494,7 @@ NotationData::parse_data(const uint8_t *data, size_t size)
{
uint16_t nlen = read_uint16(data + 4);
uint16_t vlen = read_uint16(data + 6);
if (size != 8 + nlen + vlen) {
if (size != nlen + vlen + 8) {
return false;
}
memcpy(flags_.data(), data, 4);
Expand Down

0 comments on commit f7971e7

Please sign in to comment.