Skip to content

Commit

Permalink
Patched to compile on BeOS/Haiku.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 10, 2017
1 parent 53c81e2 commit 4015689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_beos.cpp
Expand Up @@ -191,7 +191,7 @@ char *__PHYSFS_platformCalcPrefDir(const char *org, const char *app)
const char *userdir = __PHYSFS_getUserDir();
const char *append = "config/settings/";
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);
snprintf(retval, len, "%s%s%s/", userdir, append, app);
return retval;
Expand Down

0 comments on commit 4015689

Please sign in to comment.