Navigation Menu

Skip to content

Commit

Permalink
windows: use grn_memcpy()
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 21, 2018
1 parent fec15bb commit 398976b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/options.c
Expand Up @@ -319,9 +319,9 @@ grn_options_get(grn_ctx *ctx,
msgpack_unpacker_init(&unpacker, MSGPACK_UNPACKER_INIT_BUFFER_SIZE);
msgpack_unpacker_reserve_buffer(&unpacker, length);
msgpack_unpacked_init(&unpacked);
memcpy(msgpack_unpacker_buffer(&unpacker),
iw.addr,
length);
grn_memcpy(msgpack_unpacker_buffer(&unpacker),
iw.addr,
length);
msgpack_unpacker_buffer_consumed(&unpacker, length);
while (MSGPACK_UNPACKER_NEXT(&unpacker, &unpacked)) {
msgpack_object *object = &(unpacked.data);
Expand Down

0 comments on commit 398976b

Please sign in to comment.