summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-11-06 01:35:43 +0000
committerDave Hibberd <hibby@debian.org>2024-11-06 01:55:20 +0000
commitd09db428ccb493e7fbe6a39026de5e1025007a1a (patch)
tree1b9c24c4b2d35eb1496c727d40b79015c185381e
parentd1a275ea5654a5d118e4582c06cee567c0fb7997 (diff)
Add ax25_l2 fix too
-rw-r--r--debian/patches/build-fix.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/build-fix.patch b/debian/patches/build-fix.patch
index a769df8..0249689 100644
--- a/debian/patches/build-fix.patch
+++ b/debian/patches/build-fix.patch
@@ -11,6 +11,15 @@
--- a/ax25.c
+++ b/ax25.c
+@@ -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;
+
@@ -1780,6 +1780,8 @@
*(digi++) = '*';
}
@@ -20,3 +29,32 @@
}
+--- 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)
+ {