Browse Source

Use SDL_strdup instead of strdup

Mathieu Eyraud 2 years ago
parent
commit
62ed6f453f
1 changed files with 1 additions and 1 deletions
  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;