| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALSA interface to cx18 PCM capture streams |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Copyright (C) 2009 Devin Heitmueller <dheitmueller@kernellabs.com> |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Portions of this work were sponsored by ONELAN Limited. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 11 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 12 | | - * (at your option) any later version. |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | | - * GNU General Public License for more details. |
|---|
| 18 | 9 | */ |
|---|
| 19 | 10 | |
|---|
| 20 | 11 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 112 | 103 | struct snd_card *sc = cxsc->sc; |
|---|
| 113 | 104 | |
|---|
| 114 | 105 | /* sc->driver is used by alsa-lib's configurator: simple, unique */ |
|---|
| 115 | | - strlcpy(sc->driver, "CX23418", sizeof(sc->driver)); |
|---|
| 106 | + strscpy(sc->driver, "CX23418", sizeof(sc->driver)); |
|---|
| 116 | 107 | |
|---|
| 117 | 108 | /* sc->shortname is a symlink in /proc/asound: CX18-M -> cardN */ |
|---|
| 118 | 109 | snprintf(sc->shortname, sizeof(sc->shortname), "CX18-%d", |
|---|