You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
519 B

  1. diff --git a/artnet/transmit.c b/artnet/transmit.c
  2. index ce19b11..e882db9 100644
  3. --- a/artnet/transmit.c
  4. +++ b/artnet/transmit.c
  5. @@ -163,7 +163,7 @@ int artnet_tx_tod_data(node n, int id) {
  6. bloc = 0;
  7. while (remaining > 0) {
  8. - memset(&tod.data.toddata.tod,0x00, ARTNET_MAX_UID_COUNT);
  9. + memset(&tod.data.toddata.tod,0x00, ARTNET_MAX_UID_COUNT * sizeof(tod.data.toddata.tod));
  10. lim = min(ARTNET_MAX_UID_COUNT, remaining);
  11. tod.data.toddata.blockCount = bloc++;
  12. tod.data.toddata.uidCount = lim;