summaryrefslogtreecommitdiff
path: root/kernel/wctdm.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/wctdm.c')
-rw-r--r--kernel/wctdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/wctdm.c b/kernel/wctdm.c
index 68a21e7..02ffa40 100644
--- a/kernel/wctdm.c
+++ b/kernel/wctdm.c
@@ -2098,7 +2098,7 @@ static int wctdm_initialize(struct wctdm *wc)
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.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));
if (alawoverride) {
printk("ALAW override parameter detected. Device will be operating in ALAW\n");
wc->span.deflaw = ZT_LAW_ALAW;