From 76428bb0cbfc0f928ed89b1fee6b9dcc4af504fb Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 2 Mar 2017 20:53:40 +0000 Subject: [PATCH] Small code cleanup. --- YSFGateway/WiresX.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/YSFGateway/WiresX.cpp b/YSFGateway/WiresX.cpp index bfe48a7..6454c53 100644 --- a/YSFGateway/WiresX.cpp +++ b/YSFGateway/WiresX.cpp @@ -644,15 +644,13 @@ void CWiresX::sendAllReply() for (unsigned int i = 0U; i < 10U; i++) data[i + 12U] = m_node.at(i); - data[22U] = '0'; - unsigned int total = curr.size(); if (total > 999U) total = 999U; unsigned int n = curr.size() - m_start; if (n > 20U) n = 20U; - ::sprintf((char*)(data + 23U), "%02u%03u", n, total); + ::sprintf((char*)(data + 22U), "%03u%03u", n, total); data[28U] = 0x0DU;