Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-05-28 09:06:54 +0300
committerCampbell Barton <campbell@blender.org>2022-05-28 09:06:54 +0300
commit16166f69be46e07d09a395c093eb18903b80815b (patch)
treed103e580ba1140353b3c14fa1314b703ccc19838 /intern
parent5dfff02437c66777c9473b8b0fa6ed0dcc7aaf8c (diff)
Fix pasting text from Blender in GHOST/Wayland
The nil terminator character shouldn't be included, causing an extra character to be added in some cases.
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemWayland.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp
index 60ebe1abc8d..694a995c442 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cpp
+++ b/intern/ghost/intern/GHOST_SystemWayland.cpp
@@ -522,7 +522,7 @@ static void data_source_send(void *data,
int32_t fd)
{
const char *const buffer = static_cast<char *>(data);
- if (write(fd, buffer, strlen(buffer) + 1) < 0) {
+ if (write(fd, buffer, strlen(buffer)) < 0) {
GHOST_PRINT("error writing to clipboard: " << std::strerror(errno) << std::endl);
}
close(fd);