We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e28d978 commit bec133dCopy full SHA for bec133d
src/video/wayland/SDL_waylandclipboard.c
@@ -42,7 +42,7 @@ Wayland_SetClipboardText(_THIS, const char *text)
42
if (text[0] != '\0') {
43
SDL_WaylandDataSource* source = Wayland_data_source_create(_this);
44
Wayland_data_source_add_data(source, TEXT_MIME, text,
45
- strlen(text) + 1);
+ SDL_strlen(text) + 1);
46
47
status = Wayland_data_device_set_selection(data_device, source);
48
if (status != 0) {
0 commit comments