Skip to content

Commit

Permalink
Use cbor_value_get_next_byte instead of accessing structure directly
Browse files Browse the repository at this point in the history
Signed-off-by: linraymond2006 <linraymond2006@gmail.com>
  • Loading branch information
LinRaymond2006 authored and thiagomacieira committed Jan 22, 2025
1 parent aa86c9d commit 1bcde87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simplereader.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ int main(int argc, char **argv)

if (err) {
fprintf(stderr, "CBOR parsing failure at offset %ld: %s\n",
it.source.ptr - buf, cbor_error_string(err));
cbor_value_get_next_byte(&it) - buf, cbor_error_string(err));
return 1;
}
return 0;
Expand Down

0 comments on commit 1bcde87

Please sign in to comment.