src/platform_beos.cpp
changeset 1246 4fa9fe3e0b52
parent 1242 1e6db80d2393
child 1257 ffdbb97a3708
--- a/src/platform_beos.cpp	Wed Mar 21 23:52:44 2012 -0400
+++ b/src/platform_beos.cpp	Wed Mar 21 23:59:43 2012 -0400
@@ -188,10 +188,10 @@
     /* !!! FIXME: there's a real API to determine this */
     const char *userdir = __PHYSFS_getUserDir();
     const char *append = "config/settings/";
-    const size_t len = strlen(userdir) + strlen(append) + strlen(app) + 1;
+    const size_t len = strlen(userdir) + strlen(append) + strlen(app) + 2;
     char *retval = allocator.Malloc(len);
     BAIL_IF_MACRO(!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;
 } /* __PHYSFS_platformCalcPrefDir */