aboutsummaryrefslogtreecommitdiff
path: root/src/hw/esp-scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hw/esp-scsi.c')
-rw-r--r--src/hw/esp-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/esp-scsi.c b/src/hw/esp-scsi.c
index 086a032..c98989c 100644
--- a/src/hw/esp-scsi.c
+++ b/src/hw/esp-scsi.c
@@ -168,7 +168,7 @@ esp_scsi_add_lun(struct pci_device *pci, u32 iobase, u8 target, u8 lun)
llun->lun = lun;
llun->iobase = iobase;
- char *name = znprintf(16, "esp %pP %d:%d", pci, target, lun);
+ char *name = znprintf(MAXDESCSIZE, "esp %pP %d:%d", pci, target, lun);
int prio = bootprio_find_scsi_device(pci, target, lun);
int ret = scsi_drive_setup(&llun->drive, name, prio);
free(name);