mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibGUI: Fix compiler warnings.
This commit is contained in:
@@ -626,7 +626,7 @@ void GWindow::set_icon_path(const StringView& path)
|
||||
WSAPI_ClientMessage message;
|
||||
message.type = WSAPI_ClientMessage::Type::SetWindowIcon;
|
||||
message.window_id = m_window_id;
|
||||
ASSERT(path.length() < sizeof(message.text));
|
||||
ASSERT(path.length() < (int)sizeof(message.text));
|
||||
strcpy(message.text, path.characters());
|
||||
message.text_length = path.length();
|
||||
GEventLoop::post_message_to_server(message);
|
||||
|
||||
Reference in New Issue
Block a user