mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Checks in select_soundhw were never intended to accept abbreviations
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
1e6eec8b33
commit
b3d6fb4a6a
1 changed files with 1 additions and 1 deletions
2
vl.c
2
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue