Fix strncpy usage in GuestList.cpp

This commit is contained in:
Michał Janiszewski authored and Michał Janiszewski committed 2018-03-14 22:11:01 +01:00
1 parent d1d32456a5
commit 10dabfa15c
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
}