Fix off by 1 bug

This commit is contained in:
MasaGratoR
2026-04-01 20:17:52 +02:00
committed by GitHub
parent 61ac03e22d
commit f3f1fa46ed

View File

@@ -101,7 +101,7 @@ namespace ams::pgl::srv {
R_TRY(this->SetExtensionType());
/* 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);
/* Mount the package. */