ref: 289ee12e4b84ec0e77bee45a341a25e17280a340
parent: 1da09bcd496be902cd99c0b5896ece1849d8e5c9
author: cancel <cancel@cancel.fm>
date: Tue Jan 21 14:09:24 EST 2020
Cleanup
--- a/tui_main.c
+++ b/tui_main.c
@@ -1122,16 +1122,13 @@
if (!oosc_dev)
continue;
Oevent_osc_ints const *eo = &e->osc_ints;
- char path_buff[3];
- path_buff[0] = '/';
- path_buff[1] = eo->glyph;
- path_buff[2] = 0;
+ char path[] = {'/', eo->glyph, '\0'};
I32 ints[ORCA_ARRAY_COUNTOF(eo->numbers)];
Usz nnum = eo->count;
for (Usz inum = 0; inum < nnum; ++inum) {
ints[inum] = eo->numbers[inum];
}
- oosc_send_int32s(oosc_dev, path_buff, ints, nnum);
+ oosc_send_int32s(oosc_dev, path, ints, nnum);
break;
}
case Oevent_type_udp_string: {