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 | b9427b83f921560a0bf5ef9a37b6085798772905 (patch) | |
tree | 33d5f128ce0c2c1f2b4aa7fae3926920eba9eb57 | |
parent | dd716613bfeed4f55ff14aea05e5adb521272cb5 (diff) | |
download | qemu-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.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; } |