summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/ide_disk.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/ide_disk.cc b/dev/ide_disk.cc
index bd9aac8ea..f178e44ed 100644
--- a/dev/ide_disk.cc
+++ b/dev/ide_disk.cc
@@ -92,7 +92,8 @@ IdeDisk::IdeDisk(const string &name, DiskImage *img, PhysicalMemory *phys,
}
// Setup the model name
- sprintf((char *)driveID.atap_model, "5MI EDD si k");
+ strncpy((char *)driveID.atap_model, "5MI EDD si k",
+ sizeof(driveID.atap_model));
// Set the maximum multisector transfer size
driveID.atap_multi = MAX_MULTSECT;
// IORDY supported, IORDY disabled, LBA enabled, DMA enabled