Jelajahi Sumber

Use SDL_strdup instead of strdup

Mathieu Eyraud 2 tahun lalu
induk
melakukan
62ed6f453f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/video/x11/SDL_x11clipboard.c

+ 1 - 1
src/video/x11/SDL_x11clipboard.c

@@ -234,7 +234,7 @@ static void *GetSelectionData(SDL_VideoDevice *_this, Atom selection_type, size_
     }
 
     if (nullterminate && data == NULL) {
-        data = strdup("");
+        data = SDL_strdup("");
     }
 
     return data;