src/platform_beos.cpp
changeset 1264 03715ba4603d
parent 1257 ffdbb97a3708
child 1266 135cb99a06a0
--- a/src/platform_beos.cpp	Fri Mar 23 03:30:16 2012 -0400
+++ b/src/platform_beos.cpp	Fri Mar 23 04:14:01 2012 -0400
@@ -176,9 +176,10 @@
     assert(rc == B_OK);
     const char *str = path.Path();
     assert(str != NULL);
-    char *retval = (char *) allocator.Malloc(strlen(str) + 1);
+    char *retval = (char *) allocator.Malloc(strlen(str) + 2);
     BAIL_IF_MACRO(!retval, PHYSFS_ERR_OUT_OF_MEMORY, NULL);
     strcpy(retval, str);
+    strcat(retval, "/");
     return retval;
 } /* __PHYSFS_platformCalcBaseDir */