qtsoundmodem/debian/patches/build-fix.patch

61 lines
1.2 KiB
Diff
Raw Normal View History

2023-09-04 23:00:40 +01:00
--- a/tcpCode.cpp
+++ b/tcpCode.cpp
2024-11-06 01:30:24 +00:00
@@ -775,7 +775,7 @@
2023-09-04 23:00:40 +01:00
QByteArray datas = HAMLIBsock->readAll();
- qDebug(datas.data());
+ qDebug("SetPTT Error: %s", datas.data());
}
2024-11-06 01:30:24 +00:00
--- a/ax25.c
+++ b/ax25.c
2024-11-06 01:35:43 +00:00
@@ -1758,7 +1758,7 @@
-get_monitor_path(Byte * path, char * mycall, char * corrcall, char * digi)
+int get_monitor_path(Byte * path, char * mycall, char * corrcall, char * digi)
{
Byte * digiptr = digi;
2024-11-06 01:30:24 +00:00
@@ -1780,6 +1780,8 @@
*(digi++) = '*';
}
*digi = 0;
+
+ return 0;
}
2024-11-06 01:35:43 +00:00
--- a/ax25_l2.c
+++ b/ax25_l2.c
@@ -374,7 +374,7 @@
void delete_I_FRM_port(TAX25Port * AX25Sess)
{
string * frame;
- string path = { 0 };
+ Byte path[80];
string data= { 0 };
Byte pid, nr, ns, f_type, f_id, rpt, cr, pf;
@@ -386,7 +386,7 @@
optimize = TRUE;
frame = Strings(&AX25Sess->frame_buf, i);
- decode_frame(frame->Data, frame->Length, &path, &data, &pid, &nr, &ns, &f_type, &f_id, &rpt, &pf, &cr);
+ decode_frame(frame->Data, frame->Length, path, &data, &pid, &nr, &ns, &f_type, &f_id, &rpt, &pf, &cr);
if (f_id == I_I)
{
@@ -916,7 +916,7 @@
while (i != AX25Sess->hi_vs)
{
- i = (i++) & 7;
+ i = (i + 1) & 7;
need_frame[index++] = i + '0';
if (index > 10)
{