Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions patches/package/100-pppd-edit-bcopy.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/network/services/ppp/patches/200-use-memmove-for-bcopy.patch b/network/services/ppp/patches/200-use-memmove-for-bcopy.patch
new file mode 100644
index 0000000000..1632eb27b8
--- /dev/null
+++ b/package/network/services/ppp/patches/200-use-memmove-for-bcopy.patch
@@ -0,0 +1,11 @@
+--- a/pppd/pppd-private.h
++++ b/pppd/pppd-private.h
+@@ -523,7 +523,7 @@ int parse_dotted_ip(char *, u_int32_t *)
+ #define TIMEOUT(r, f, t) ppp_timeout((r), (f), (t), 0)
+ #define UNTIMEOUT(r, f) ppp_untimeout((r), (f))
+
+-#define BCOPY(s, d, l) memcpy(d, s, l)
++#define BCOPY(s, d, l) memmove(d, s, l)
+ #define BZERO(s, n) memset(s, 0, n)
+ #define BCMP(s1, s2, l) memcmp(s1, s2, l)
+
Loading