mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
fs.mitm: fix logic error in CopyFile
This commit is contained in:
parent
08a2f02a7c
commit
fb5e02050b
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ Result FsDirUtils::CopyFile(IFileSystem *dst_fs, IFileSystem *src_fs, const FsPa
|
|||
/* Create and open destination file. */
|
||||
{
|
||||
FsPath dst_path;
|
||||
if (static_cast<size_t>(snprintf(dst_path.str, sizeof(dst_path.str), "%s%s", dst_parent_path.str, src_path.str)) >= sizeof(dst_path)) {
|
||||
if (static_cast<size_t>(snprintf(dst_path.str, sizeof(dst_path.str), "%s%s", dst_parent_path.str, dir_ent->name)) >= sizeof(dst_path)) {
|
||||
/* TODO: Error code? N aborts here. */
|
||||
std::abort();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue