Commit 0b475884 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Zip: pad CRC numbers to 8 characters

BUGS: 455007
parent 117ce427
Pipeline #188207 passed with stage
in 1 minute and 55 seconds
......@@ -316,7 +316,7 @@ bool LibzipPlugin::emitEntryForIndex(zip_t *archive, qlonglong index)
}
if (statBuffer.valid & ZIP_STAT_CRC) {
if (!e->isDir()) {
e->setProperty("CRC", QString::number((qulonglong)statBuffer.crc, 16).toUpper());
e->setProperty("CRC", QStringLiteral("%1").arg((qulonglong)statBuffer.crc, /*fieldWidth*/ 8, /*base*/ 16, QLatin1Char('0')).toUpper());
}
}
if (statBuffer.valid & ZIP_STAT_COMP_METHOD) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment