diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-01-03 18:26:29 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-01-03 18:26:29 +0000 |
commit | b5aef822a088200675fdefc60912179e1e367fef (patch) | |
tree | 506f8a8425486e4ab9d83c7d5a089012cce7374f /drivers/dahdi/wctdm.c | |
parent | 4f4a8cc6b125268829e09db494f311f43127c35d (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/wctdm.c')
-rw-r--r-- | drivers/dahdi/wctdm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c index c3c6d57..411795c 100644 --- a/drivers/dahdi/wctdm.c +++ b/drivers/dahdi/wctdm.c @@ -2370,7 +2370,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"; - dahdi_copy_string(wc->span.devicetype, wc->variety, sizeof(wc->span.devicetype)); + strlcpy(wc->span.devicetype, wc->variety, sizeof(wc->span.devicetype)); if (alawoverride) { printk(KERN_INFO "ALAW override parameter detected. Device will be operating in ALAW\n"); wc->span.deflaw = DAHDI_LAW_ALAW; |