summaryrefslogtreecommitdiff
path: root/kernel/wct1xxp.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/wct1xxp.c')
-rw-r--r--kernel/wct1xxp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/wct1xxp.c b/kernel/wct1xxp.c
index bcfed97..cfc5edd 100644
--- a/kernel/wct1xxp.c
+++ b/kernel/wct1xxp.c
@@ -762,7 +762,7 @@ static int t1xxp_software_init(struct t1xxp *wc)
sprintf(wc->span.name, "WCT1/%d", wc->num);
snprintf(wc->span.desc, sizeof(wc->span.desc) - 1, "%s Card %d", wc->variety, wc->num);
wc->span.manufacturer = "Digium";
- strncpy(wc->span.devicetype, wc->variety, sizeof(wc->span.devicetype) - 1);
+ zap_copy_string(wc->span.devicetype, wc->variety, sizeof(wc->span.devicetype));
snprintf(wc->span.location, sizeof(wc->span.location) - 1,
"PCI Bus %02d Slot %02d", wc->dev->bus->number, PCI_SLOT(wc->dev->devfn) + 1);
wc->span.spanconfig = t1xxp_spanconfig;