susumu.yata
null+****@clear*****
Tue Sep 29 11:09:20 JST 2015
susumu.yata 2015-09-29 11:09:20 +0900 (Tue, 29 Sep 2015) New Revision: 7b24756f0e5335c3acce004b4e851b52610ddf9e https://github.com/groonga/groonga/commit/7b24756f0e5335c3acce004b4e851b52610ddf9e Message: grn_ts: use grn_memmove() because of source and destination overlap Modified files: lib/ts.c Modified: lib/ts.c (+1 -1) =================================================================== --- lib/ts.c 2015-09-29 01:01:37 +0900 (6341b4a) +++ lib/ts.c 2015-09-29 11:09:20 +0900 (2f05e26) @@ -6966,7 +6966,7 @@ grn_ts_select_filter(grn_ctx *ctx, grn_obj *table, grn_ts_str str, batch_size = 0; } else { size_t n_bytes = sizeof(grn_ts_record) * (batch_size - offset); - grn_memcpy(batch, batch + offset, n_bytes); + grn_memmove(batch, batch + offset, n_bytes); batch_size -= offset; offset = 0; } -------------- next part -------------- HTML����������������������������...다운로드