From 289ee12e4b84ec0e77bee45a341a25e17280a340 Mon Sep 17 00:00:00 2001 From: cancel Date: Tue, 21 Jan 2020 19:09:24 +0900 Subject: [PATCH] Cleanup --- tui_main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tui_main.c b/tui_main.c index d6253ab..55356c9 100644 --- a/tui_main.c +++ b/tui_main.c @@ -1122,16 +1122,13 @@ void send_output_events(Oosc_dev *oosc_dev, Midi_mode const *midi_mode, Usz bpm, 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: {