diff options
Diffstat (limited to 'Libraries/LibGUI/GDesktop.cpp')
-rw-r--r-- | Libraries/LibGUI/GDesktop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GDesktop.cpp b/Libraries/LibGUI/GDesktop.cpp index 809fdc80f0..0c2786b1da 100644 --- a/Libraries/LibGUI/GDesktop.cpp +++ b/Libraries/LibGUI/GDesktop.cpp @@ -29,7 +29,7 @@ bool GDesktop::set_wallpaper(const StringView& path) WSAPI_ClientMessage message; message.type = WSAPI_ClientMessage::Type::SetWallpaper; ASSERT(path.length() < (int)sizeof(message.text)); - strncpy(message.text, path.characters(), path.length()); + strncpy(message.text, path.characters_without_null_termination(), path.length()); message.text_length = path.length(); auto response = GEventLoop::current().sync_request(message, WSAPI_ServerMessage::Type::DidSetWallpaper); return response.value; |