mirror of https://github.com/AxioDL/metaforce.git
CMemoryCardSys: Fix GCC nonstring
This commit is contained in:
parent
c8ba49bb50
commit
81e7981c76
|
@ -198,6 +198,9 @@ void CMemoryCardSys::CCardFileInfo::BuildCardBuffer() {
|
||||||
|
|
||||||
CMemoryOutStream w(x104_cardBuffer.data(), x104_cardBuffer.size());
|
CMemoryOutStream w(x104_cardBuffer.data(), x104_cardBuffer.size());
|
||||||
w.writeUint32Big(0);
|
w.writeUint32Big(0);
|
||||||
|
#if __GNUC__ && !__clang__
|
||||||
|
__attribute__((nonstring))
|
||||||
|
#endif
|
||||||
char comment[64];
|
char comment[64];
|
||||||
strncpy(comment, x28_comment.data(), 64);
|
strncpy(comment, x28_comment.data(), 64);
|
||||||
w.writeBytes(comment, 64);
|
w.writeBytes(comment, 64);
|
||||||
|
|
Loading…
Reference in New Issue