projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
704aec5
)
Fix serial option with -drive
author
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 1 May 2009 14:26:16 +0000
(09:26 -0500)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 1 May 2009 14:44:12 +0000
(09:44 -0500)
This is from the KVM tree.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index 385b124a85ab228515e1f279558b727c60be3317..867111c1eb320dc9131e3c3e6737b7157d70d570 100644
(file)
--- a/
vl.c
+++ b/
vl.c
@@
-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) {