From 67951812a007554e6477f85482ccdd6c386811bd Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 23 Jul 2018 16:42:21 +0200 Subject: [PATCH] JACK: fixed query --- src/audio/playback/jack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/playback/jack.c b/src/audio/playback/jack.c index 9685201ea..9b2d4be79 100644 --- a/src/audio/playback/jack.c +++ b/src/audio/playback/jack.c @@ -247,7 +247,7 @@ static void * audio_play_jack_init(const char *cfg) static bool audio_play_jack_query_format(struct state_jack_playback *s, void *data, size_t *len) { struct audio_desc desc; - if (*len <= sizeof desc) { + if (*len < sizeof desc) { return false; } else { memcpy(&desc, data, sizeof desc);