wayland: Convert some memcpy calls to copyp

main
Frank Praznik 2023-09-24 11:31:14 -04:00
parent 9284a03053
commit 752f14e5a6
1 changed files with 2 additions and 2 deletions

View File

@ -279,7 +279,7 @@ static void keyboard_repeat_set(SDL_WaylandKeyboardRepeat *repeat_info, uint32_t
repeat_info->next_repeat_ns = SDL_MS_TO_NS(repeat_info->repeat_delay_ms);
repeat_info->scancode = scancode;
if (has_text) {
SDL_memcpy(repeat_info->text, text, 8);
SDL_copyp(repeat_info->text, text);
} else {
repeat_info->text[0] = '\0';
}
@ -297,7 +297,7 @@ static uint32_t keyboard_repeat_get_key(SDL_WaylandKeyboardRepeat *repeat_info)
static void keyboard_repeat_set_text(SDL_WaylandKeyboardRepeat *repeat_info, const char text[8])
{
if (repeat_info->is_initialized) {
SDL_memcpy(repeat_info->text, text, 8);
SDL_copyp(repeat_info->text, text);
}
}