Checks in select_soundhw were never intended to accept abbreviations

Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
malc 2009-09-06 06:49:03 +04:00
parent 1e6eec8b33
commit b3d6fb4a6a
1 changed files with 1 additions and 1 deletions

2
vl.c
View File

@ -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;
}