diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-08-30 10:14:56 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-08-30 10:14:56 +0100 |
| commit | 6dfe32758e1a995b1241af8c981798c22cd70439 (patch) | |
| tree | 7629ba162dd6b1240bb696c043e287781c269c66 /SerialPort.c | |
| parent | 766bbe358d961346b239ffe868d1477567046f41 (diff) | |
New upstream version 6.0.24.42upstream/6.0.24.42
Diffstat (limited to 'SerialPort.c')
| -rw-r--r-- | SerialPort.c | 3 |
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);
|
