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/tor2.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/tor2.c')
-rw-r--r-- | drivers/dahdi/tor2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/tor2.c b/drivers/dahdi/tor2.c index 396ad05..1babb4f 100644 --- a/drivers/dahdi/tor2.c +++ b/drivers/dahdi/tor2.c @@ -284,7 +284,7 @@ static void init_spans(struct tor2 *tor) "Tormenta 2 (PCI) Quad %s Card %d Span %d", (tor->cardtype == TYPE_T1) ? "T1" : "E1", tor->num, x + 1); s->manufacturer = "Digium"; - dahdi_copy_string(s->devicetype, tor->type, sizeof(s->devicetype)); + strlcpy(s->devicetype, tor->type, sizeof(s->devicetype)); snprintf(s->location, sizeof(s->location) - 1, "PCI Bus %02d Slot %02d", tor->pci->bus->number, PCI_SLOT(tor->pci->devfn) + 1); if (tor->cardtype == TYPE_T1) { |