diff options
Diffstat (limited to 'kernel/tor2.c')
-rw-r--r-- | kernel/tor2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/tor2.c b/kernel/tor2.c index ef2cf05..b0962f2 100644 --- a/kernel/tor2.c +++ b/kernel/tor2.c @@ -272,7 +272,7 @@ static void init_spans(struct tor2 *tor) "Tormenta 2 (PCI) fQuad %s Card %d Span %d", (tor->cardtype == TYPE_T1) ? "T1" : "E1", tor->num, x + 1); tor->spans[x].manufacturer = "Digium"; - strncpy(tor->spans[x].devicetype, tor->type, sizeof(tor->spans[x].devicetype) - 1); + zap_copy_string(tor->spans[x].devicetype, tor->type, sizeof(tor->spans[x].devicetype)); snprintf(tor->spans[x].location, sizeof(tor->spans[x].location) - 1, "PCI Bus %02d Slot %02d", tor->pci->bus->number, PCI_SLOT(tor->pci->devfn) + 1); tor->spans[x].spanconfig = tor2_spanconfig; |