diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-23 22:51:27 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-23 22:51:27 +0000 |
commit | 1f9584496747480020bb93ee1582d104f877ce0a (patch) | |
tree | 19a8f8ca723972a33c3f0a775a99aab63d5bad44 /vl.c | |
parent | a14d6c8c65f4caa6f61030fcfd3df6f108919d44 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'); |