| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALSA interface to ivtv 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 for the cx18 driver |
|---|
| 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 "ivtv-driver.h" |
|---|
| .. | .. |
|---|
| 109 | 100 | struct snd_card *sc = itvsc->sc; |
|---|
| 110 | 101 | |
|---|
| 111 | 102 | /* sc->driver is used by alsa-lib's configurator: simple, unique */ |
|---|
| 112 | | - strlcpy(sc->driver, "CX2341[56]", sizeof(sc->driver)); |
|---|
| 103 | + strscpy(sc->driver, "CX2341[56]", sizeof(sc->driver)); |
|---|
| 113 | 104 | |
|---|
| 114 | 105 | /* sc->shortname is a symlink in /proc/asound: IVTV-M -> cardN */ |
|---|
| 115 | 106 | snprintf(sc->shortname, sizeof(sc->shortname), "IVTV-%d", |
|---|