Fix seqrch query truncating.
GitOrigin-RevId: 2c0ae82d21a0faf248bc6f0fc428b567fc66b031
This commit is contained in:
parent
03de2b47e8
commit
dd7af98c8e
@ -570,7 +570,7 @@ class MessagesDbImpl : public MessagesDbSyncInterface {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const size_t MAX_QUERY_SIZE = 1024;
|
const size_t MAX_QUERY_SIZE = 1024;
|
||||||
query.truncate(MAX_QUERY_SIZE);
|
query = utf8_truncate(query, MAX_QUERY_SIZE);
|
||||||
auto buf = StackAllocator::alloc(query.size() * 4 + 100);
|
auto buf = StackAllocator::alloc(query.size() * 4 + 100);
|
||||||
StringBuilder sb(buf.as_slice());
|
StringBuilder sb(buf.as_slice());
|
||||||
bool in_word{false};
|
bool in_word{false};
|
||||||
|
Loading…
Reference in New Issue
Block a user