From 34ec29a0cffa09a5e9d2cda9c9b430c3cdb71bdd Mon Sep 17 00:00:00 2001 From: Tom Early Date: Thu, 10 Jan 2019 21:30:25 -0700 Subject: [PATCH] fixed link_at_start bug --- QnetLink.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QnetLink.cpp b/QnetLink.cpp index c825de4..bf5b28a 100644 --- a/QnetLink.cpp +++ b/QnetLink.cpp @@ -959,7 +959,9 @@ void CQnetLink::Process() sleep(15); first = false; } - g2link('A'+i, link_at_startup[i].substr(0, 6).c_str(), link_at_startup[i].at(7)); + std::string node(link_at_startup[i].substr(0, 6)); + node.resize(CALL_SIZE, ' '); + g2link('A'+i, node.c_str(), link_at_startup[i].at(7)); } }