summaryrefslogtreecommitdiff
path: root/SerialPort.c
diff options
context:
space:
mode:
Diffstat (limited to 'SerialPort.c')
-rw-r--r--SerialPort.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/SerialPort.c b/SerialPort.c
index 59ab627..9886be7 100644
--- a/SerialPort.c
+++ b/SerialPort.c
@@ -452,8 +452,7 @@ ok:
if (buffptr == 0) return (0); // No buffers, so ignore
- buffptr->Len = 36;
- memcpy(&buffptr->Data[0], "No Connection to TNC\r", 36);
+ buffptr->Len = sprintf(&buffptr->Data[0], "No Connection to TNC\r");
C_Q_ADD(&TNC->Streams[Stream].PACTORtoBPQ_Q, buffptr);