提交 b3d6fb4a 编写于 作者: M malc

Checks in select_soundhw were never intended to accept abbreviations

Signed-off-by: Nmalc <av1474@comtv.ru>
上级 1e6eec8b
......@@ -4526,7 +4526,7 @@ static void select_soundhw (const char *optarg)
l = !e ? strlen (p) : (size_t) (e - p);
for (c = soundhw; c->name; ++c) {
if (!strncmp (c->name, p, l)) {
if (!strncmp (c->name, p, l) && !c->name[l]) {
c->enabled = 1;
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册