Patched to compile on Solaris.

This commit is contained in:
Ryan C. Gordon 2013-08-23 23:34:23 -04:00
parent a22e8c931d
commit 9bc89f40b9

View file

@ -97,7 +97,7 @@ SDL_GetBasePath(void)
#elif defined(__SOLARIS__)
const char *path = getexecname();
if ((path != NULL) && (path[0] == '/')) { /* must be absolute path... */
retval = SDL_strdup(fullpath);
retval = SDL_strdup(path);
if (!retval) {
SDL_OutOfMemory();
return NULL;