Skip to content

Commit

Permalink
wayland: Use SDL_strlen instead of strlen
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo authored and slouken committed Apr 10, 2021
1 parent e28d978 commit bec133d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/wayland/SDL_waylandclipboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Wayland_SetClipboardText(_THIS, const char *text)
if (text[0] != '\0') {
SDL_WaylandDataSource* source = Wayland_data_source_create(_this);
Wayland_data_source_add_data(source, TEXT_MIME, text,
strlen(text) + 1);
SDL_strlen(text) + 1);

status = Wayland_data_device_set_selection(data_device, source);
if (status != 0) {
Expand Down

0 comments on commit bec133d

Please sign in to comment.