CMemoryCardSys: Fix GCC nonstring

This commit is contained in:
Luke Street 2020-10-21 01:12:34 -04:00
parent c8ba49bb50
commit 81e7981c76
1 changed files with 3 additions and 0 deletions

View File

@ -198,6 +198,9 @@ void CMemoryCardSys::CCardFileInfo::BuildCardBuffer() {
CMemoryOutStream w(x104_cardBuffer.data(), x104_cardBuffer.size());
w.writeUint32Big(0);
#if __GNUC__ && !__clang__
__attribute__((nonstring))
#endif
char comment[64];
strncpy(comment, x28_comment.data(), 64);
w.writeBytes(comment, 64);