From a005090d3d4041311c9fde365305604a96b68ee9 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 16 Jan 2020 01:10:48 +0300 Subject: [PATCH] sys_fs: use constant in sys_fs_disk_free --- rpcs3/Emu/Cell/lv2/sys_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_fs.cpp b/rpcs3/Emu/Cell/lv2/sys_fs.cpp index eb47f08fc8..aba940e268 100644 --- a/rpcs3/Emu/Cell/lv2/sys_fs.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_fs.cpp @@ -1715,7 +1715,7 @@ error_code sys_fs_disk_free(ppu_thread& ppu, vm::cptr path, vm::ptr t } // It seems max length is 31, and multiple / at the start aren't supported - if (vpath.size() > 31) + if (vpath.size() > CELL_FS_MAX_MP_LENGTH) { return {CELL_ENAMETOOLONG, path}; }