Skip to content
Permalink
Browse files

fix entries having garbage after their name

  • Loading branch information
martravi committed Mar 22, 2020
1 parent 4750f06 commit eda8a4ef3a211d28b134753dba0d0f29fbab7d1a
Showing with 4 additions and 0 deletions.
  1. +4 −0 WiiQt/nandbin.cpp
@@ -1227,6 +1227,10 @@ quint16 NandBin::CreateNode( const QString &name, quint32 uid, quint16 gid, quin

QByteArray n = name.toLatin1();
n.resize( 12 );
for(int j = name.size(); j < 12; j++) //zerofill from last character to the last byte
{
n[j] = 0x00;
}
//qDebug() << "will add entry for" << n << "at" << hex << i;
memcpy( &fsts[ i ].filename, n.data(), 12 );
fsts[ i ].attr = attr;

0 comments on commit eda8a4e

Please sign in to comment.
You can’t perform that action at this time.