diff --git a/apps/systemlib/mixer.c b/apps/systemlib/mixer.c index 25cf801603..b068d39588 100644 --- a/apps/systemlib/mixer.c +++ b/apps/systemlib/mixer.c @@ -187,6 +187,9 @@ mixer_getline(int fd, char *line, unsigned maxlen) /* line termination */ if (c == '\n') { /* ignore malformed lines */ + if ((p - line) < 4) + break; + if (line[1] != ':') break;