瀏覽代碼

Patched to compile on Solaris.

Ryan C. Gordon 11 年之前
父節點
當前提交
58a558e326
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/filesystem/unix/SDL_sysfilesystem.c

+ 1 - 1
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;