freebsd-ports/net/atmsupport/files/patch-ats_cc-kern.c
Hartmut Brandt 11c0f289b3 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.
2009-04-11 19:37:43 +00:00

11 lines
389 B
C

--- 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)