From b3d6fb4a6a53d9d16bfe3cafe805e0b41f9ccb8b Mon Sep 17 00:00:00 2001 From: malc Date: Sun, 6 Sep 2009 06:49:03 +0400 Subject: Checks in select_soundhw were never intended to accept abbreviations Signed-off-by: malc --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vl.c') 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; } -- cgit v1.2.3