mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
59f7eb5e1f
Previous GCC7 fix was incorrect and GCC8 correctly complains about it.
Fix it properly.
Also cleaned up the Makefile for consistency between packages.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from fac6f0e0a5)
12 lines
415 B
Diff
12 lines
415 B
Diff
--- a/artnet/transmit.c
|
|
+++ b/artnet/transmit.c
|
|
@@ -163,7 +163,7 @@ int artnet_tx_tod_data(node n, int id) {
|
|
bloc = 0;
|
|
|
|
while (remaining > 0) {
|
|
- memset(&tod.data.toddata.tod,0x00, ARTNET_MAX_UID_COUNT);
|
|
+ memset(&tod.data.toddata.tod,0x00, sizeof(tod.data.toddata.tod));
|
|
lim = min(ARTNET_MAX_UID_COUNT, remaining);
|
|
tod.data.toddata.blockCount = bloc++;
|
|
tod.data.toddata.uidCount = lim;
|