From 5b720569560038d64ba1e3feea117b34447bbefe Mon Sep 17 00:00:00 2001 From: squelchiee Date: Wed, 7 Aug 2024 10:31:44 -0300 Subject: [PATCH] iosu_fpd.cpp: Fix GetMyComment from crashing offline --- src/Cafe/IOSU/legacy/iosu_fpd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cafe/IOSU/legacy/iosu_fpd.cpp b/src/Cafe/IOSU/legacy/iosu_fpd.cpp index 9ceb09dd7..180f2ca01 100644 --- a/src/Cafe/IOSU/legacy/iosu_fpd.cpp +++ b/src/Cafe/IOSU/legacy/iosu_fpd.cpp @@ -736,7 +736,7 @@ namespace iosu g_fpd.nexFriendSession->getMyComment(myNexComment); myComment = StringHelpers::FromUtf8(myNexComment.commentString); } - myComment.insert(0, 1, '\0'); // avoid first character of comment from being cut off + myComment.insert(0, 1, '\0'); memcpy(vecOut->basePhys.GetPtr(), myComment.c_str(), MY_COMMENT_LENGTH * sizeof(uint16be)); return FPResult_Ok; }