diff --git a/src/video/x11/SDL_x11clipboard.c b/src/video/x11/SDL_x11clipboard.c index 7cd58a0ad..41098409f 100644 --- a/src/video/x11/SDL_x11clipboard.c +++ b/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;