Changeset 7868c26


Ignore:
Timestamp:
Dec 27, 2023, 4:38:30 PM (4 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
master
Children:
7545b56
Parents:
c37f6ec
Message:

[examples] use snprinf in jackio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/jackio.c

    rc37f6ec r7868c26  
    124124    if (i < ochan) {
    125125      jack_port_type = JACK_DEFAULT_AUDIO_TYPE;
    126       AUBIO_SPRINTF (name, "out_%d", i + 1);
     126      AUBIO_SNPRINTF (name, sizeof (name), "out_%d", i + 1);
    127127    } else {
    128128      jack_port_type = JACK_DEFAULT_MIDI_TYPE;
    129       AUBIO_SPRINTF (name, "midi_out_%d", i - ochan + 1);
     129      AUBIO_SNPRINTF (name, sizeof (name), "midi_out_%d", i - ochan + 1);
    130130    }
    131131    if ((jack_setup->oports[i] =
     
    141141    if (i < ichan) {
    142142      jack_port_type = JACK_DEFAULT_AUDIO_TYPE;
    143       AUBIO_SPRINTF (name, "in_%d", i + 1);
     143      AUBIO_SNPRINTF (name, sizeof (name), "in_%d", i + 1);
    144144    } else {
    145145      jack_port_type = JACK_DEFAULT_MIDI_TYPE;
    146       AUBIO_SPRINTF (name, "midi_in_%d", i - ichan + 1);
     146      AUBIO_SNPRINTF (name, sizeof (name), "midi_in_%d", i - ichan + 1);
    147147    }
    148148    if ((jack_setup->iports[i] =
Note: See TracChangeset for help on using the changeset viewer.