diff --git a/src/platform/psp2/sce-vfs.c b/src/platform/psp2/sce-vfs.c index becb34230..e8bb8929f 100644 --- a/src/platform/psp2/sce-vfs.c +++ b/src/platform/psp2/sce-vfs.c @@ -181,10 +181,10 @@ struct VFile* _vdsceOpenFile(struct VDir* vd, const char* path, int mode) { return 0; } const char* dir = vdsce->path; - char* combined = malloc(sizeof(char) * (strlen(path) + strlen(dir) + 2)); + char* combined = malloc(sizeof(char) * (strlen(path) + strlen(dir) + strlen(PATH_SEP) + 1)); sprintf(combined, "%s%s%s", dir, PATH_SEP, path); - struct VFile* file = VFileOpenSce(combined, mode, 0666); + struct VFile* file = VFileOpen(combined, mode); free(combined); return file; }