fix the compile error
This commit is contained in:
parent
48bf4a763a
commit
22e98d612a
|
@ -326,7 +326,8 @@ static int sctp_setsockopt_events_linux_workaround(
|
|||
} else if (compiletime_size < sctp_sockopt_event_subscribe_size) {
|
||||
/* we are using an older userspace with a more modern kernel
|
||||
* and hence need to pad the data */
|
||||
uint8_t buf[sctp_sockopt_event_subscribe_size];
|
||||
uint8_t buf[256];
|
||||
ogs_assert(sctp_sockopt_event_subscribe_size <= sizeof(buf));
|
||||
|
||||
memcpy(buf, event, compiletime_size);
|
||||
memset(buf + sizeof(*event),
|
||||
|
|
Loading…
Reference in New Issue