aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-23 22:51:27 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-23 22:51:27 +0000
commit1f9584496747480020bb93ee1582d104f877ce0a (patch)
tree19a8f8ca723972a33c3f0a775a99aab63d5bad44 /vl.c
parenta14d6c8c65f4caa6f61030fcfd3df6f108919d44 (diff)
Null character instead of numeric null.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2277 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index 3799c8a589..ed3109e21b 100644
--- a/vl.c
+++ b/vl.c
@@ -3881,7 +3881,7 @@ static int disk_options_init(int num_ide_disks,
}
if (cdrom_device) {
- snprintf(dev_name, sizeof(dev_name), "cdrom%c", i);
+ snprintf(dev_name, sizeof(dev_name), "cdrom%c", i + '0');
} else {
snprintf(dev_name, sizeof(dev_name), "hd%c", i + 'a');
}
@@ -3977,7 +3977,7 @@ static int disk_options_init(int num_ide_disks,
}
if (cdrom_device) {
- snprintf(dev_name, sizeof(buf), "cdrom%c", scsi_index);
+ snprintf(dev_name, sizeof(buf), "cdrom%c", scsi_index + '0');
scsi_disks_info[scsi_index].device_type = SCSI_CDROM;
} else {
snprintf(dev_name, sizeof(buf), "sd%c", scsi_index + 'a');