diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-01 09:26:16 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-01 09:44:12 -0500 |
commit | e6a6dfe454c6b43abf9d5df8170950c4a9f28920 (patch) | |
tree | 0205fb5f31d3588661dc027bdcd517d9707ce854 /vl.c | |
parent | 704aec581c1683750e313832ba3aa4813d59cbd0 (diff) | |
download | qemu-e6a6dfe454c6b43abf9d5df8170950c4a9f28920.zip qemu-e6a6dfe454c6b43abf9d5df8170950c4a9f28920.tar.gz qemu-e6a6dfe454c6b43abf9d5df8170950c4a9f28920.tar.bz2 |
Fix serial option with -drive
This is from the KVM tree.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2537,7 +2537,7 @@ int drive_init(struct drive_opt *arg, int snapshot, void *opaque) drives_table[drives_table_idx].unit = unit_id; drives_table[drives_table_idx].onerror = onerror; drives_table[drives_table_idx].drive_opt_idx = arg - drives_opt; - strncpy(drives_table[nb_drives].serial, serial, sizeof(serial)); + strncpy(drives_table[drives_table_idx].serial, serial, sizeof(serial)); nb_drives++; switch(type) { |