Przeglądaj źródła

wayland: Another strlen->SDL_strlen

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

+ 1 - 1
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();