Skip to content

Commit 1bcde87

Browse files
LinRaymond2006thiagomacieira
authored andcommitted
Use cbor_value_get_next_byte instead of accessing structure directly
Signed-off-by: linraymond2006 <linraymond2006@gmail.com>
1 parent aa86c9d commit 1bcde87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/simplereader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ int main(int argc, char **argv)
178178

179179
if (err) {
180180
fprintf(stderr, "CBOR parsing failure at offset %ld: %s\n",
181-
it.source.ptr - buf, cbor_error_string(err));
181+
cbor_value_get_next_byte(&it) - buf, cbor_error_string(err));
182182
return 1;
183183
}
184184
return 0;

0 commit comments

Comments
 (0)