Skip to content

Commit

Permalink
iosu_fpd.cpp: Fix GetMyComment from crashing offline
Browse files Browse the repository at this point in the history
  • Loading branch information
gf2p8affineqb committed Aug 7, 2024
1 parent b97dd09 commit 5b72056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cafe/IOSU/legacy/iosu_fpd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5b72056

Please sign in to comment.