Skip to content

Commit

Permalink
fts-squat: Fix truncating headers at NULs while indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Aug 30, 2018
1 parent d1e71fa commit 6285cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/fts-squat/fts-backend-squat.c
Expand Up @@ -331,7 +331,7 @@ fts_backend_squat_update_build_more(struct fts_backend_update_context *_ctx,
(struct squat_fts_backend_update_context *)_ctx;

if (ctx->squat_type == SQUAT_INDEX_TYPE_HEADER) {
str_append_n(ctx->hdr, data, size);
str_append_data(ctx->hdr, data, size);
return 0;
}
return squat_trie_build_more(ctx->build_ctx, ctx->uid, ctx->squat_type,
Expand Down

0 comments on commit 6285cce

Please sign in to comment.