From f3f1fa46ed14e9f8d92c5ca530918804510d3479 Mon Sep 17 00:00:00 2001 From: MasaGratoR Date: Wed, 1 Apr 2026 20:17:52 +0200 Subject: [PATCH] Fix off by 1 bug --- .../libstratosphere/source/pgl/srv/pgl_srv_shell_host_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libstratosphere/source/pgl/srv/pgl_srv_shell_host_utils.cpp b/libraries/libstratosphere/source/pgl/srv/pgl_srv_shell_host_utils.cpp index e1e6cb7da..f9882515b 100644 --- a/libraries/libstratosphere/source/pgl/srv/pgl_srv_shell_host_utils.cpp +++ b/libraries/libstratosphere/source/pgl/srv/pgl_srv_shell_host_utils.cpp @@ -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. */