Commit 58a558e326f50135cb303af2d8de5eaf42760212

Ryan C. Gordon 2013-08-23T23:34:23

Patched to compile on Solaris.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/filesystem/unix/SDL_sysfilesystem.c b/src/filesystem/unix/SDL_sysfilesystem.c
index 659d126..d8eb6e5 100644
--- a/src/filesystem/unix/SDL_sysfilesystem.c
+++ b/src/filesystem/unix/SDL_sysfilesystem.c
@@ -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;