diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-04-25 16:49:45 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-04-25 16:49:45 +0200 |
| commit | 58bd71f26d2920eaa996a9615d0b762a08d438bc (patch) | |
| tree | f8f1f8a256695b6470b6577600af2a70fbb3af71 | |
| parent | 8489a245ee8c6cf2afbf7f634ce89b2cb99b5050 (diff) | |
Wayland filename drag-n-drop: fix final null byte
| -rw-r--r-- | src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx b/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx index adc942fe4..d414fcbda 100644 --- a/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx +++ b/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx @@ -395,6 +395,7 @@ way_out: if (!p) break; if (*++p == 0) *(p-1) = 0; // remove last '\n' } + fl_selection_length[1] = strlen(fl_selection_buffer[1]); } Fl::e_clipboard_type = Fl::clipboard_plain_text; } |
