After a successful initialization with SDL_Init() and setting a video mode,
I try to use SDL_VideoDriverName():char *buffer = NULL;
SDL_VideoDriverName(buffer, 100);
That should be:
char buffer[100]
SDL_VideoDriverName(buffer, sizeof(buffer));
You need to allocate the storage yourself and tell SDL how much it can use.
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment