mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-16 04:42:57 +00:00
2626136749
When the host clears the clipboard (e.g. by running `pbcopy </dev/null`) the Spice server sends an empty string to us. Previously, we would crash as `AnonymousBuffer::create_with_size` doesn't accept a size of 0. Fix this by passing `{}` to `async_set_clipboard_data` in this case. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
ConnectionToClipboardServer.cpp | ||
ConnectionToClipboardServer.h | ||
main.cpp | ||
SpiceAgent.cpp | ||
SpiceAgent.h |