[Groonga-commit] groonga/groonga at 1821a3e [master] Use grn_memcpy for portability

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 5 18:13:22 JST 2016


Kouhei Sutou	2016-04-05 18:13:22 +0900 (Tue, 05 Apr 2016)

  New Revision: 1821a3e0f71dc6fcf47a17b10d613e894b9de883
  https://github.com/groonga/groonga/commit/1821a3e0f71dc6fcf47a17b10d613e894b9de883

  Message:
    Use grn_memcpy for portability

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+1 -1)
===================================================================
--- lib/ii.c    2016-04-05 18:10:32 +0900 (8d49847)
+++ lib/ii.c    2016-04-05 18:13:22 +0900 (414c9b3)
@@ -8875,7 +8875,7 @@ grn_ii_builder_term_extend(grn_ctx *ctx, grn_ii_builder_term *term)
           "failed to allocate memory for term buffer: size = %u", size);
       return ctx->rc;
     }
-    memcpy(buf, &term->dummy, term->offset);
+    grn_memcpy(buf, &term->dummy, term->offset);
   } else {
     buf = (uint8_t *)GRN_REALLOC(term->buf, size);
     if (!buf) {
-------------- next part --------------
HTML����������������������������...
Download 



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