Fix off by 1 bug
This commit is contained in:
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user