QElfParser: Fix plural form in error message
Amends change dcec1420ea9d7e90bbd7f37be15d8e61eaf35d23. Change-Id: I54c7db012d87a55c310141debac19118e7cb284a Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
27432d40f2
commit
0b30a6e6aa
@ -142,10 +142,12 @@ int QElfParser::parse(const char *dataStart, ulong fdlen, const QString &library
|
||||
data += sizeof(qelfhalf_t); // e_shtrndx
|
||||
|
||||
if ((quint32)(e_shnum * e_shentsize) > fdlen) {
|
||||
if (lib)
|
||||
lib->errorString = QLibrary::tr("'%1' is an invalid ELF object (%2)")
|
||||
.arg(library, QLibrary::tr("announced %1 section(s), each %2 byte(s), exceed file size")
|
||||
.arg(e_shnum).arg(e_shentsize));
|
||||
if (lib) {
|
||||
const QString message =
|
||||
QLibrary::tr("announced %n section(s), each %1 byte(s), exceed file size",
|
||||
nullptr, int(e_shnum)).arg(e_shentsize);
|
||||
lib->errorString = QLibrary::tr("'%1' is an invalid ELF object (%2)").arg(library, message);
|
||||
}
|
||||
return Corrupt;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user