[Groonga-commit] groonga/groonga at 398976b [master] windows: use grn_memcpy()

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jun 21 16:20:51 JST 2018


Kouhei Sutou	2018-06-21 16:20:51 +0900 (Thu, 21 Jun 2018)

  New Revision: 398976bd73f9a219c5c280dfc475132ea48d0f89
  https://github.com/groonga/groonga/commit/398976bd73f9a219c5c280dfc475132ea48d0f89

  Message:
    windows: use grn_memcpy()

  Modified files:
    lib/options.c

  Modified: lib/options.c (+3 -3)
===================================================================
--- lib/options.c    2018-06-21 16:20:01 +0900 (2587689c7)
+++ lib/options.c    2018-06-21 16:20:51 +0900 (06167b325)
@@ -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);
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180621/333a15d1/attachment.htm 



More information about the Groonga-commit mailing list
Back to archive index