diff options
author | malc <av1474@comtv.ru> | 2009-09-06 06:49:03 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-09-06 06:49:23 +0400 |
commit | b3d6fb4a6a53d9d16bfe3cafe805e0b41f9ccb8b (patch) | |
tree | 33d5f128ce0c2c1f2b4aa7fae3926920eba9eb57 /vl.c | |
parent | 1e6eec8b33814aa09c988232f65d8ce6407d3312 (diff) | |
download | qemu-b3d6fb4a6a53d9d16bfe3cafe805e0b41f9ccb8b.zip qemu-b3d6fb4a6a53d9d16bfe3cafe805e0b41f9ccb8b.tar.gz qemu-b3d6fb4a6a53d9d16bfe3cafe805e0b41f9ccb8b.tar.bz2 |
Checks in select_soundhw were never intended to accept abbreviations
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |