diff --git a/stratosphere/loader/source/ldr_content_management.cpp b/stratosphere/loader/source/ldr_content_management.cpp index f2acf3f..29487b3 100644 --- a/stratosphere/loader/source/ldr_content_management.cpp +++ b/stratosphere/loader/source/ldr_content_management.cpp @@ -68,7 +68,7 @@ } if (R_SUCCEEDED(rc = lrRegLrResolveProgramPath(®, tid, path))) { - strncpy(out_path, path, sizeof(path)); + strncpy(out_path, path, FS_MAX_PATH); } else if (rc != 0x408) { return rc; } @@ -84,7 +84,7 @@ } if (R_SUCCEEDED(rc = lrLrResolveProgramPath(&lr, tid, path))) { - strncpy(out_path, path, sizeof(path)); + strncpy(out_path, path, FS_MAX_PATH); } serviceClose(&lr.s); diff --git a/stratosphere/loader/source/ldr_launch_queue.cpp b/stratosphere/loader/source/ldr_launch_queue.cpp index cbca94b..456027b 100644 --- a/stratosphere/loader/source/ldr_launch_queue.cpp +++ b/stratosphere/loader/source/ldr_launch_queue.cpp @@ -22,7 +22,7 @@ } Result LaunchQueue::add_copy(u64 tid_base, u64 tid) { - unsigned int idx = get_index(tid_base); + int idx = get_index(tid_base); if (idx == LAUNCH_QUEUE_FULL) { return 0x0; } diff --git a/stratosphere/pm/source/pm_resource_limits.cpp b/stratosphere/pm/source/pm_resource_limits.cpp index 1174c68..f45f135 100644 --- a/stratosphere/pm/source/pm_resource_limits.cpp +++ b/stratosphere/pm/source/pm_resource_limits.cpp @@ -123,7 +123,6 @@ } void ResourceLimitUtils::EnsureApplicationResourcesAvailable() { - Result rc; Handle application_reslimit_h = g_resource_limit_handles[1]; for (unsigned int i = 0; i < 5; i++) { u64 result; @@ -199,4 +198,4 @@ g_system_boost_size = boost_size; } return rc; -} \ No newline at end of file +}