aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-09-06 06:49:03 +0400
committermalc <av1474@comtv.ru>2009-09-06 06:49:23 +0400
commitb3d6fb4a6a53d9d16bfe3cafe805e0b41f9ccb8b (patch)
tree33d5f128ce0c2c1f2b4aa7fae3926920eba9eb57
parent1e6eec8b33814aa09c988232f65d8ce6407d3312 (diff)
Checks in select_soundhw were never intended to accept abbreviations
Signed-off-by: malc <av1474@comtv.ru>
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 6e014f17c2..098daaad0f 100644
--- a/vl.c
+++ b/vl.c
@@ -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;
}