mirror of
https://github.com/qemu/qemu.git
synced 2025-08-16 14:54:29 +00: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
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);
|
l = !e ? strlen (p) : (size_t) (e - p);
|
||||||
|
|
||||||
for (c = soundhw; c->name; ++c) {
|
for (c = soundhw; c->name; ++c) {
|
||||||
if (!strncmp (c->name, p, l)) {
|
if (!strncmp (c->name, p, l) && !c->name[l]) {
|
||||||
c->enabled = 1;
|
c->enabled = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user