From 16166f69be46e07d09a395c093eb18903b80815b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 28 May 2022 16:06:54 +1000 Subject: 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. --- intern/ghost/intern/GHOST_SystemWayland.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern') 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(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); -- cgit v1.2.3