[Groonga-commit] groonga/groonga at c3e1ed9 [master] NormalizeNFKC100: add missing reverting pointer

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 12 09:52:37 JST 2018


Kouhei Sutou	2018-04-12 09:52:37 +0900 (Thu, 12 Apr 2018)

  New Revision: c3e1ed9296756c5cd532056282f6072948bfd391
  https://github.com/groonga/groonga/commit/c3e1ed9296756c5cd532056282f6072948bfd391

  Message:
    NormalizeNFKC100: add missing reverting pointer

  Modified files:
    lib/normalizer.c

  Modified: lib/normalizer.c (+2 -0)
===================================================================
--- lib/normalizer.c    2018-04-11 18:40:16 +0900 (18c442939)
+++ lib/normalizer.c    2018-04-12 09:52:37 +0900 (12ab8d6fc)
@@ -969,6 +969,7 @@ utf8_normalize(grn_ctx *ctx,
         }
 
         {
+          const unsigned char *p_original = p;
           unsigned char unified_kana[3];
           unsigned char unified_kana_case[3];
           unsigned char unified_kana_voiced_sound_mark[3];
@@ -1019,6 +1020,7 @@ utf8_normalize(grn_ctx *ctx,
           }
 
           grn_memcpy(d, p, lp);
+          p = p_original;
         }
         d_ = d;
         d += lp;
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180412/bf40d181/attachment.htm 



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