Skip to content

Commit bec133d

Browse files
flibitijibiboslouken
authored andcommitted
wayland: Use SDL_strlen instead of strlen
1 parent e28d978 commit bec133d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video/wayland/SDL_waylandclipboard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Wayland_SetClipboardText(_THIS, const char *text)
4242
if (text[0] != '\0') {
4343
SDL_WaylandDataSource* source = Wayland_data_source_create(_this);
4444
Wayland_data_source_add_data(source, TEXT_MIME, text,
45-
strlen(text) + 1);
45+
SDL_strlen(text) + 1);
4646

4747
status = Wayland_data_device_set_selection(data_device, source);
4848
if (status != 0) {

0 commit comments

Comments
 (0)