Update core/tests/unit/kmnkbd/test_actions_normalize.cpp

Co-authored-by: Marc Durdin <marc@durdin.net>
This commit is contained in:
Steven R. Loomis 2024-01-22 16:47:28 -06:00 committed by GitHub
parent ac315661ed
commit aecf4e4552
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,7 +58,7 @@ void setup(const km_core_cp *app_context, const km_core_cp *cached_context, int
test_actions->code_points_to_delete = actions_code_points_to_delete;
std::unique_ptr<km_core_usv[]> buf(new km_core_usv[actions_output.length() + 1]);
actions_output.copy(buf.get(), actions_output.length());
// terimate the buffer
// terminate the buffer
buf.get()[actions_output.length()] = 0;
test_actions->output = buf.release();
}