| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* SF16-FMR2 and SF16-FMD2 radio driver for Linux |
|---|
| 2 | 3 | * Copyright (c) 2011 Ondrej Zary |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 213 | 214 | if (io == fmr2_cards[i]->io) |
|---|
| 214 | 215 | return -EBUSY; |
|---|
| 215 | 216 | |
|---|
| 216 | | - strlcpy(fmr2->v4l2_dev.name, "radio-sf16fmr2", |
|---|
| 217 | | - sizeof(fmr2->v4l2_dev.name)), |
|---|
| 217 | + strscpy(fmr2->v4l2_dev.name, "radio-sf16fmr2", |
|---|
| 218 | + sizeof(fmr2->v4l2_dev.name)), |
|---|
| 218 | 219 | fmr2->io = io; |
|---|
| 219 | 220 | |
|---|
| 220 | 221 | if (!request_region(fmr2->io, 2, fmr2->v4l2_dev.name)) { |
|---|
| .. | .. |
|---|
| 234 | 235 | fmr2->tea.radio_nr = radio_nr[num_fmr2_cards]; |
|---|
| 235 | 236 | fmr2->tea.ops = &fmr2_tea_ops; |
|---|
| 236 | 237 | fmr2->tea.ext_init = fmr2_tea_ext_init; |
|---|
| 237 | | - strlcpy(fmr2->tea.card, card_name, sizeof(fmr2->tea.card)); |
|---|
| 238 | + strscpy(fmr2->tea.card, card_name, sizeof(fmr2->tea.card)); |
|---|
| 238 | 239 | snprintf(fmr2->tea.bus_info, sizeof(fmr2->tea.bus_info), "%s:%s", |
|---|
| 239 | 240 | fmr2->is_fmd2 ? "PnP" : "ISA", dev_name(pdev)); |
|---|
| 240 | 241 | |
|---|