channel.switch_timer_interval = chops->switch_timer_interval;
channel.read_timer_interval = chops->read_timer_interval;
channel.output = chops->output;
- memcpy(channel.padding, chops->padding, sizeof(channel.padding));
+ memcpy(channel.padding, chops->padding, sizeof(chops->padding));
return ioctl(fd, LTTNG_KERNEL_METADATA, &channel);
}
channel.switch_timer_interval = chops->switch_timer_interval;
channel.read_timer_interval = chops->read_timer_interval;
channel.output = chops->output;
- memcpy(channel.padding, chops->padding, sizeof(channel.padding));
+ memcpy(channel.padding, chops->padding, sizeof(chops->padding));
return ioctl(fd, LTTNG_KERNEL_CHANNEL, &channel);
}