diff options
Diffstat (limited to 'sys/pci/if_en_pci.c')
-rw-r--r-- | sys/pci/if_en_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_en_pci.c b/sys/pci/if_en_pci.c index d1853b5..37db78e 100644 --- a/sys/pci/if_en_pci.c +++ b/sys/pci/if_en_pci.c @@ -259,7 +259,7 @@ int unit; enpcis[unit] = scp; /* lock it in */ en_cd.cd_devs[unit] = sc; /* fake a cfdriver structure */ en_cd.cd_ndevs = NEN; - sprintf(sc->sc_dev.dv_xname, "en%d", unit); + snprintf(sc->sc_dev.dv_xname, sizeof(sc->sc_dev.dv_xname), "en%d", unit); sc->enif.if_unit = unit; sc->enif.if_name = "en"; |