From 2dd0360deca87ab4deb7c8cd8afd883bc4f70b9c Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Mon, 29 Dec 2025 20:47:34 +0100 Subject: [PATCH] fix: Restore clipboard sharing after 53441821e014bed0c5b168f12a3a83c677cccc7b We wanted the value contained in the string as size_t, not the size (length) of the string. size_t is (normally) an alias for unsigned long, so toUlong() should do the trick. --- src/lib/deskflow/ClipboardChunk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/deskflow/ClipboardChunk.cpp b/src/lib/deskflow/ClipboardChunk.cpp index 6e8fee23f..7abbdba1a 100644 --- a/src/lib/deskflow/ClipboardChunk.cpp +++ b/src/lib/deskflow/ClipboardChunk.cpp @@ -74,7 +74,7 @@ ClipboardChunk::assemble(deskflow::IStream *stream, std::string &dataCached, Cli } if (mark == ChunkType::DataStart) { - s_expectedSize = QString::fromStdString(data).size(); + s_expectedSize = QString::fromStdString(data).toULong(); LOG_DEBUG("start receiving clipboard data"); dataCached.clear(); return Started;