Achievements: Use a 256-byte rich presence buffer to avoid an rcheevos over-read

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 4.8 committed 2026-10-01 10:26:00 -06:00
1 parent 932d1e3b36
commit ffc0a274a6
1 file changed
+1 -1
+1 -1
View File
@@ -562,7 +562,7 @@ void GamePauseScreen::CreateViews() {
// TODO: active subset?
saveDataScrollItems->Add(new GameAchievementSummaryView(0));
char buf[512];
char buf[256];
size_t sz = Achievements::GetRichPresenceMessage(buf, sizeof(buf));
if (sz != (size_t)-1) {
saveDataScrollItems->Add(new TextView(std::string_view(buf, sz), FLAG_WRAP_TEXT, true, new UI::LinearLayoutParams(Margins(5, 5))));