kopia lustrzana https://github.com/f4exb/sdrangel
Fix #1928. Add null-terminator between strings.
rodzic
a8e50b77c8
commit
84848124fd
|
@ -180,10 +180,15 @@ bool PagerDemod::handleMessage(const Message& cmd)
|
||||||
{
|
{
|
||||||
QByteArray message;
|
QByteArray message;
|
||||||
message.append(report.getDateTime().toString().toLatin1());
|
message.append(report.getDateTime().toString().toLatin1());
|
||||||
|
message.append('\0');
|
||||||
message.append(QString::number(report.getAddress()).toLatin1());
|
message.append(QString::number(report.getAddress()).toLatin1());
|
||||||
|
message.append('\0');
|
||||||
message.append(QString::number(report.getFunctionBits()).toLatin1());
|
message.append(QString::number(report.getFunctionBits()).toLatin1());
|
||||||
|
message.append('\0');
|
||||||
message.append(report.getAlphaMessage().toLatin1());
|
message.append(report.getAlphaMessage().toLatin1());
|
||||||
|
message.append('\0');
|
||||||
message.append(report.getNumericMessage().toLatin1());
|
message.append(report.getNumericMessage().toLatin1());
|
||||||
|
message.append('\0');
|
||||||
m_udpSocket.writeDatagram(message.data(), message.size(),
|
m_udpSocket.writeDatagram(message.data(), message.size(),
|
||||||
QHostAddress(m_settings.m_udpAddress), m_settings.m_udpPort);
|
QHostAddress(m_settings.m_udpAddress), m_settings.m_udpPort);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue