aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/sacn.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-08-10 20:30:07 +0200
committercbdev <cb@cbcdn.com>2019-08-10 20:30:07 +0200
commit48bf96602023b2ead855f13477b6f5e26b663b45 (patch)
treedbdcb002c0211b566487c174834a408ba881958c /backends/sacn.c
parentcf93d280af47aea1bf8bdafa30eabb2c2de005b8 (diff)
downloadmidimonster-48bf96602023b2ead855f13477b6f5e26b663b45.tar.gz
midimonster-48bf96602023b2ead855f13477b6f5e26b663b45.tar.bz2
midimonster-48bf96602023b2ead855f13477b6f5e26b663b45.zip
Clean up & check unions
Diffstat (limited to 'backends/sacn.c')
-rw-r--r--backends/sacn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/sacn.c b/backends/sacn.c
index 2f418e5..470e3bd 100644
--- a/backends/sacn.c
+++ b/backends/sacn.c
@@ -44,6 +44,11 @@ int init(){
.shutdown = sacn_shutdown
};
+ if(sizeof(sacn_instance_id) != sizeof(uint64_t)){
+ fprintf(stderr, "sACN instance identification union out of bounds\n");
+ return 1;
+ }
+
//register the backend
if(mm_backend_register(sacn)){
fprintf(stderr, "Failed to register sACN backend\n");