From bec133d77b5d0651e66704cf86f0030a751a5106 Mon Sep 17 00:00:00 2001
From: Ethan Lee <[EMAIL REDACTED]>
Date: Thu, 8 Apr 2021 14:16:32 -0400
Subject: [PATCH] wayland: Use SDL_strlen instead of strlen
---
src/video/wayland/SDL_waylandclipboard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/wayland/SDL_waylandclipboard.c b/src/video/wayland/SDL_waylandclipboard.c
index 577eda771..a94413970 100644
--- a/src/video/wayland/SDL_waylandclipboard.c
+++ b/src/video/wayland/SDL_waylandclipboard.c
@@ -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) {