Kouhei Sutou
null+****@clear*****
Mon May 27 14:20:22 JST 2013
Kouhei Sutou 2013-05-27 14:20:22 +0900 (Mon, 27 May 2013) New Revision: d608d7b8e3a37dbb97e8a62454ffe47984b87996 https://github.com/groonga/groonga-normalizer-mysql/commit/d608d7b8e3a37dbb97e8a62454ffe47984b87996 Message: Add more 1 size to chracter types buffer Because groonga does lookahead. Modified files: normalizers/mysql.c Modified: normalizers/mysql.c (+1 -1) =================================================================== --- normalizers/mysql.c 2013-05-25 22:08:38 +0900 (04cce8f) +++ normalizers/mysql.c 2013-05-27 14:20:22 +0900 (1e5f346) @@ -310,7 +310,7 @@ normalize(grn_ctx *ctx, grn_obj *string, normalized = GRN_PLUGIN_MALLOC(ctx, max_normalized_length_in_bytes); } if (flags & GRN_STRING_WITH_TYPES) { - unsigned int max_normalized_n_characters = original_length_in_bytes; + unsigned int max_normalized_n_characters = original_length_in_bytes + 1; types = GRN_PLUGIN_MALLOC(ctx, max_normalized_n_characters); current_type = types; } -------------- next part -------------- HTML����������������������������... ダウンロード