qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 0205fb5] Fix serial option with -drive


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 0205fb5] Fix serial option with -drive
Date: Fri, 01 May 2009 15:05:19 -0000

From: Anthony Liguori <address@hidden>

This is from the KVM tree.

Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/vl.c b/vl.c
index 385b124..867111c 100644
--- 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) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]