Przeglądaj źródła

wayland: Use SDL_strlen instead of strlen

Ethan Lee 5 lat temu
rodzic
commit
bec133d77b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/video/wayland/SDL_waylandclipboard.c

+ 1 - 1
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) {