summaryrefslogtreecommitdiff
path: root/kernel/wcfxo.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/wcfxo.c')
-rw-r--r--kernel/wcfxo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/wcfxo.c b/kernel/wcfxo.c
index 5f48051..6dbadc4 100644
--- a/kernel/wcfxo.c
+++ b/kernel/wcfxo.c
@@ -666,7 +666,7 @@ static int wcfxo_initialize(struct wcfxo *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));
wc->chan.sigcap = ZT_SIG_FXSKS | ZT_SIG_FXSLS | ZT_SIG_SF;
wc->chan.chanpos = 1;
wc->span.chans = &wc->chan;