fix the compile error

This commit is contained in:
Sukchan Lee 2020-11-01 01:44:59 -04:00
parent 48bf4a763a
commit 22e98d612a
1 changed files with 2 additions and 1 deletions

View File

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