mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2026-06-05 19:56:57 +00:00
Fix off by 1 bug
This commit is contained in:
parent
61ac03e22d
commit
f3f1fa46ed
@ -101,7 +101,7 @@ namespace ams::pgl::srv {
|
|||||||
R_TRY(this->SetExtensionType());
|
R_TRY(this->SetExtensionType());
|
||||||
|
|
||||||
/* Copy in mount name. */
|
/* Copy in mount name. */
|
||||||
R_UNLESS(strlen(mount) <= sizeof(m_mount_name) - 1, pgl::ResultBufferNotEnough());
|
R_UNLESS(strlen(mount) <= sizeof(m_mount_name), pgl::ResultBufferNotEnough());
|
||||||
std::strcpy(m_mount_name, mount);
|
std::strcpy(m_mount_name, mount);
|
||||||
|
|
||||||
/* Mount the package. */
|
/* Mount the package. */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user