X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fsession_file.c;h=467c581283a0e55899003f469dea476bcd1e07c9;hb=b89462e45706e9b4f65eced96c7d76347f4b5569;hp=d86f5c1c744973715234070e1b3818fd13096610;hpb=a6dc3dacab23bf7c8da008f21a03e2a1242e77ea;p=libsigrok.git diff --git a/src/session_file.c b/src/session_file.c index d86f5c1c..467c5812 100644 --- a/src/session_file.c +++ b/src/session_file.c @@ -278,7 +278,7 @@ SR_API int sr_session_load(struct sr_context *ctx, const char *filename, sr_config_set(sdi, NULL, SR_CONF_NUM_LOGIC_CHANNELS, g_variant_new_int32(total_channels)); for (k = 0; k < total_channels; k++) { - g_snprintf(channelname, sizeof channelname, + g_snprintf(channelname, sizeof(channelname), "%d", k); sr_channel_new(sdi, k, SR_CHANNEL_LOGIC, FALSE, channelname);