summaryrefslogtreecommitdiff
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
commitb9427b83f921560a0bf5ef9a37b6085798772905 (patch)
tree33d5f128ce0c2c1f2b4aa7fae3926920eba9eb57
parentdd716613bfeed4f55ff14aea05e5adb521272cb5 (diff)
downloadqemu-b9427b83f921560a0bf5ef9a37b6085798772905.tar.gz
qemu-b9427b83f921560a0bf5ef9a37b6085798772905.tar.bz2
qemu-b9427b83f921560a0bf5ef9a37b6085798772905.zip
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;
}