summaryrefslogtreecommitdiff
path: root/AEAPactor.c
diff options
context:
space:
mode:
Diffstat (limited to 'AEAPactor.c')
-rw-r--r--AEAPactor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/AEAPactor.c b/AEAPactor.c
index 98ca400..643dae1 100644
--- a/AEAPactor.c
+++ b/AEAPactor.c
@@ -292,8 +292,7 @@ static size_t ExtProc(int fn, int port, PDATAMESSAGE buff)
{
// Send Error Response
- buffptr->Len = 36;
- memcpy(buffptr->Data, "No Connection to PACTOR TNC\r", 36);
+ buffptr->Len = sprintf(buffptr->Data, "No Connection to PACTOR TNC\r");
C_Q_ADD(&TNC->Streams[Stream].PACTORtoBPQ_Q, buffptr);