Bugfix: Encode hexdump and IPv4 options correctly
Using QString().fromStdString() caused conversion to Unicode via utf8 instead of using the plain binary data
This commit is contained in:
parent
a1962c7887
commit
4924d7fe60
@ -109,7 +109,7 @@ QVariant HexDumpProtocol::fieldData(int index, FieldAttrib attrib,
|
||||
case FieldValue:
|
||||
case FieldTextValue:
|
||||
case FieldFrameValue:
|
||||
ba.append(QString().fromStdString(data.content()));
|
||||
ba.append(data.content().c_str(), data.content().length());
|
||||
if (data.pad_until_end())
|
||||
{
|
||||
pad = QByteArray(
|
||||
|
@ -521,7 +521,7 @@ QVariant Ip4Protocol::fieldData(int index, FieldAttrib attrib,
|
||||
case FieldValue:
|
||||
case FieldFrameValue:
|
||||
case FieldTextValue:
|
||||
ba.append(QString().fromStdString(data.options()));
|
||||
ba.append(data.options().c_str(), data.options().length());
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user