diff --git a/test/testautomation_video.c b/test/testautomation_video.c index 1c0dac6c2..ccaa2ed8a 100644 --- a/test/testautomation_video.c +++ b/test/testautomation_video.c @@ -1522,7 +1522,7 @@ video_getSetWindowData(void *arg) returnValue = TEST_ABORTED; goto cleanup; } - userdata = (char *)strdup(referenceUserdata); + userdata = SDL_strdup(referenceUserdata); if (userdata == NULL) { returnValue = TEST_ABORTED; goto cleanup;