Update src/core/hle/libraries/libkernel/file_system.cpp

Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
This commit is contained in:
georgemoralis 2023-11-08 08:00:18 +02:00 committed by GitHub
parent b33fd9d8cb
commit 128a27a38b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ int PS4_SYSV_ABI sceKernelGetdents(int fd, char* buf, int nbytes) {
sce_ent->d_reclen = sizeof(SceKernelDirent); sce_ent->d_reclen = sizeof(SceKernelDirent);
sce_ent->d_type = (entry.isFile ? 8 : 4); sce_ent->d_type = (entry.isFile ? 8 : 4);
sce_ent->d_namlen = str_size; sce_ent->d_namlen = str_size;
strcpy_s(sce_ent->d_name, SCE_MAX_PATH, str.data()); str.copy(sce_ent->d_name, SCE_MAX_PATH);
return sizeof(SceKernelDirent); return sizeof(SceKernelDirent);
} }