We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5178 - Wayland: SDL_SetClipboardText appends extra null byte in the end
Summary: Wayland: SDL_SetClipboardText appends extra null byte in the end
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-09 10:38 UTC by Ivan Molodetskikh
Modified: 2020-06-09 21:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Molodetskikh 2020-06-09 10:38:43 UTC
hg revision 71c13a6765a9405927a5bf0aaf1471f4dabb3b01, also SDL 2.0.12 and earlier

Run test/testdropfile, press Ctrl-C to copy.

└─ wl-paste -n | hexdump -C
00000000  53 44 4c 20 72 6f 63 6b  73 21 0a 59 6f 75 20 6b  |SDL rocks!.You k|
00000010  6e 6f 77 20 69 74 21 00                           |now it!.|
00000018

Note the extra null-byte in the end, it shouldn't be there.