Patched to compile on BeOS/Haiku.
This commit is contained in:
parent
53c81e216a
commit
4015689068
|
@ -191,7 +191,7 @@ char *__PHYSFS_platformCalcPrefDir(const char *org, const char *app)
|
||||||
const char *userdir = __PHYSFS_getUserDir();
|
const char *userdir = __PHYSFS_getUserDir();
|
||||||
const char *append = "config/settings/";
|
const char *append = "config/settings/";
|
||||||
const size_t len = strlen(userdir) + strlen(append) + strlen(app) + 2;
|
const size_t len = strlen(userdir) + strlen(append) + strlen(app) + 2;
|
||||||
char *retval = allocator.Malloc(len);
|
char *retval = (char *) allocator.Malloc(len);
|
||||||
BAIL_IF(!retval, PHYSFS_ERR_OUT_OF_MEMORY, NULL);
|
BAIL_IF(!retval, PHYSFS_ERR_OUT_OF_MEMORY, NULL);
|
||||||
snprintf(retval, len, "%s%s%s/", userdir, append, app);
|
snprintf(retval, len, "%s%s%s/", userdir, append, app);
|
||||||
return retval;
|
return retval;
|
||||||
|
|
Loading…
Reference in New Issue