summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wct4xxp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-01-03 18:26:29 +0000
committerShaun Ruffell <sruffell@digium.com>2011-01-03 18:26:29 +0000
commite3f7107d6123cb3d096402fe68b8dd644bcd1f8b (patch)
tree506f8a8425486e4ab9d83c7d5a089012cce7374f /drivers/dahdi/wct4xxp
parent68699cbfaac0d5cbac72ebe7f577c10d156356af (diff)
'dahdi_copy_string()' -> 'strlcpy()'
There is already a safe string copying function in all the kernels DAHDI currently supports. Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Kinsey Moore <kmoore@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9585 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wct4xxp')
-rw-r--r--drivers/dahdi/wct4xxp/base.c3
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);