mirror of
https://github.com/martravi/wiiqt.git
synced 2024-11-22 00:59:18 +01:00
fix entries having garbage after their name
This commit is contained in:
parent
4750f06e39
commit
eda8a4ef3a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user