summaryrefslogtreecommitdiff
path: root/example/simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/simple.c')
-rw-r--r--example/simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/simple.c b/example/simple.c
index df60424..41d8bb7 100644
--- a/example/simple.c
+++ b/example/simple.c
@@ -23,7 +23,7 @@ int main(void)
msgpack_zone_init(&mempool, 2048);
msgpack_object deserialized;
- msgpack_unpack(sbuf.ptr, sbuf.size, NULL, &mempool, &deserialized);
+ msgpack_unpack(sbuf.data, sbuf.size, NULL, &mempool, &deserialized);
/* print the deserialized object. */
msgpack_object_print(stdout, deserialized);