diff options
Diffstat (limited to 'drivers/dahdi/wct4xxp/base.c')
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index eb6d04e..322a702 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -2016,7 +2016,8 @@ static void set_span_devicetype(struct t4 *wc) for (x = 0; x < wc->numspans; x++) { ts = wc->tspans[x]; - dahdi_copy_string(ts->span.devicetype, wc->variety, sizeof(ts->span.devicetype)); + strlcpy(ts->span.devicetype, wc->variety, + sizeof(ts->span.devicetype)); if (wc->vpm == T4_VPM_PRESENT) { if (!wc->vpm450m) strncat(ts->span.devicetype, " (VPM400M)", sizeof(ts->span.devicetype) - 1); |