From 84848124fdd9c1577662987f85212cc0be8b6440 Mon Sep 17 00:00:00 2001 From: srcejon Date: Thu, 14 Dec 2023 12:13:51 +0000 Subject: [PATCH] Fix #1928. Add null-terminator between strings. --- plugins/channelrx/demodpager/pagerdemod.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/channelrx/demodpager/pagerdemod.cpp b/plugins/channelrx/demodpager/pagerdemod.cpp index 444b7ae54..59c093233 100644 --- a/plugins/channelrx/demodpager/pagerdemod.cpp +++ b/plugins/channelrx/demodpager/pagerdemod.cpp @@ -180,10 +180,15 @@ bool PagerDemod::handleMessage(const Message& cmd) { QByteArray message; message.append(report.getDateTime().toString().toLatin1()); + message.append('\0'); message.append(QString::number(report.getAddress()).toLatin1()); + message.append('\0'); message.append(QString::number(report.getFunctionBits()).toLatin1()); + message.append('\0'); message.append(report.getAlphaMessage().toLatin1()); + message.append('\0'); message.append(report.getNumericMessage().toLatin1()); + message.append('\0'); m_udpSocket.writeDatagram(message.data(), message.size(), QHostAddress(m_settings.m_udpAddress), m_settings.m_udpPort); }