fix cursor crash

This commit is contained in:
tqcq 2024-04-07 09:10:41 +00:00
parent 2d12117cfb
commit 983f2f1e28

View File

@ -88,7 +88,7 @@ cursor::offset()
void
cursor::string(std::string &out)
{
size_t size;
size_t size = 0;
const char *p = this->cstr(&size);
// out.resize(size);
// memmove(&out.front(), p, size);