ams: use util::SNPrintf over std:: (size/linker improvements)
This commit is contained in:
1 parent
9cfd259c5c
commit
094cede39e
41 files changed
+103
-103
No files matched your search
@@ -151,7 +151,7 @@ namespace ams::fs {
|
||||
AMS_FS_R_TRY(accessor->GetCommonMountName(dst, dst_size));
|
||||
|
||||
const auto mount_name_len = strnlen(dst, dst_size);
|
||||
const auto common_path_len = std::snprintf(dst + mount_name_len, dst_size - mount_name_len, "%s", sub_path);
|
||||
const auto common_path_len = util::SNPrintf(dst + mount_name_len, dst_size - mount_name_len, "%s", sub_path);
|
||||
|
||||
AMS_FS_R_UNLESS(static_cast<size_t>(common_path_len) < dst_size - mount_name_len, fs::ResultTooLongPath());
|
||||
return ResultSuccess();
|
||||
|
||||
Reference in new issue
Block a user