Add a patch to fix the breakage introduced by the removal of a (non-
standard-conform) zero-length array in struct ccatm_op for compilation by LLVM.
This commit is contained in:
parent
b660c64cd3
commit
11c0f289b3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=232113
1 changed files with 11 additions and 0 deletions
11
net/atmsupport/files/patch-ats_cc-kern.c
Normal file
11
net/atmsupport/files/patch-ats_cc-kern.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- ats_cc/kern.c.orig 2009-04-11 15:20:31.000000000 +0200
|
||||
+++ ats_cc/kern.c 2009-04-11 15:00:04.000000000 +0200
|
||||
@@ -427,7 +427,7 @@
|
||||
err(1, NULL);
|
||||
|
||||
uarg->op = sig;
|
||||
- memcpy(uarg->data, msg->b_rptr, uni_msg_len(msg));
|
||||
+ memcpy(uarg + 1, msg->b_rptr, uni_msg_len(msg));
|
||||
|
||||
if ((ret = NgSendData(dsock, user->hook, (const u_char *)uarg,
|
||||
sizeof(*uarg) + uni_msg_len(msg))) == -1)
|
Loading…
Reference in a new issue