Skip to content

Commit

Permalink
JACK: fixed query
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Jul 23, 2018
1 parent ac9f2d7 commit 6795181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/playback/jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6795181

Please sign in to comment.