Commit 6d46e30fede784cd3fdeadb8bc6ea2af9e7537f8

Wouter Wijsman 2022-01-05T14:31:31

Remove extra / in PSP GetPrefPath

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/filesystem/psp/SDL_sysfilesystem.c b/src/filesystem/psp/SDL_sysfilesystem.c
index 626cdcc..b5bfc14 100644
--- a/src/filesystem/psp/SDL_sysfilesystem.c
+++ b/src/filesystem/psp/SDL_sysfilesystem.c
@@ -64,9 +64,9 @@ SDL_GetPrefPath(const char *org, const char *app)
   retval = (char *) SDL_malloc(len);
     
   if (*org) {
-    SDL_snprintf(retval, len, "%s/%s/%s/", base, org, app);
+    SDL_snprintf(retval, len, "%s%s/%s/", base, org, app);
   } else {
-    SDL_snprintf(retval, len, "%s/%s/", base, app);
+    SDL_snprintf(retval, len, "%s%s/", base, app);
   }
   free(base);