Commit 282c05247912ad5aa52928a781eb9b3acdd9d898

Ethan Lee 2021-04-08T14:59:04

wayland: Another strlen->SDL_strlen

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/wayland/SDL_waylanddatamanager.c b/src/video/wayland/SDL_waylanddatamanager.c
index a9cbaae..bd40e73 100644
--- a/src/video/wayland/SDL_waylanddatamanager.c
+++ b/src/video/wayland/SDL_waylanddatamanager.c
@@ -204,7 +204,7 @@ mime_data_list_add(struct wl_list* list,
         } else {
             WAYLAND_wl_list_insert(list, &(mime_data->link));
 
-            mime_type_length = strlen(mime_type) + 1;
+            mime_type_length = SDL_strlen(mime_type) + 1;
             mime_data->mime_type = SDL_malloc(mime_type_length);
             if (mime_data->mime_type == NULL) {
                 status = SDL_OutOfMemory();