X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fbinary.c;h=013621373c71dd4eed995c19980fed76c1b13cbc;hb=00ed77f27c85462cae238ee433dbf0f606eaaf84;hp=91e4d3c434e45cdcfa65b3597e2f16c8476af9cc;hpb=95c1fe62f77d347bf173b1236c38a9043efabd2b;p=libsigrok.git diff --git a/src/input/binary.c b/src/input/binary.c index 91e4d3c4..01362137 100644 --- a/src/input/binary.c +++ b/src/input/binary.c @@ -56,7 +56,7 @@ static int init(struct sr_input *in, GHashTable *options) inc->samplerate = g_variant_get_uint64(g_hash_table_lookup(options, "samplerate")); for (i = 0; i < num_channels; i++) { - snprintf(name, 16, "%d", i); + snprintf(name, sizeof(name), "%d", i); sr_channel_new(in->sdi, i, SR_CHANNEL_LOGIC, TRUE, name); }