mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-03 21:22:57 +01:00
Fix strncpy usage in GuestList.cpp
This commit is contained in:
committed by
Michał Janiszewski
parent
d1d32456a5
commit
10dabfa15c
@@ -856,7 +856,7 @@ static void window_guest_list_textinput(rct_window *w, rct_widgetindex widgetInd
|
||||
{
|
||||
if (text != nullptr && text[0] != '\0')
|
||||
{
|
||||
strncpy(_window_guest_list_filter_name, text, sizeof(_window_guest_list_filter_name));
|
||||
safe_strcpy(_window_guest_list_filter_name, text, sizeof(_window_guest_list_filter_name));
|
||||
w->pressed_widgets |= (1 << WIDX_FILTER_BY_NAME);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user