src/platform_unix.c
changeset 1246 4fa9fe3e0b52
parent 1242 1e6db80d2393
child 1264 03715ba4603d
--- a/src/platform_unix.c	Wed Mar 21 23:52:44 2012 -0400
+++ b/src/platform_unix.c	Wed Mar 21 23:59:43 2012 -0400
@@ -315,10 +315,10 @@
         append = ".local/share/";
     } /* if */
 
-    len = strlen(envr) + strlen(append) + strlen(app) + 1;
+    len = strlen(envr) + strlen(append) + strlen(app) + 2;
     retval = (char *) allocator.Malloc(len);
     BAIL_IF_MACRO(!retval, PHYSFS_ERR_OUT_OF_MEMORY, NULL);
-    snprintf(retval, len, "%s%s%s", envr, append, app);
+    snprintf(retval, len, "%s%s%s/", envr, append, app);
     return retval;
 } /* __PHYSFS_platformCalcPrefDir */