mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ALSA: Use strlcpy() instead of strncpy()
We tend to make stupid mistakes with strncpy(). Let's take a safer one, strlcpy(). Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
97f44f56ca
commit
57a4451d26
6 changed files with 8 additions and 8 deletions
|
|
@ -185,7 +185,7 @@ static int pxa2xx_ac97_probe(struct platform_device *dev)
|
|||
goto err;
|
||||
|
||||
card->dev = &dev->dev;
|
||||
strncpy(card->driver, dev->dev.driver->name, sizeof(card->driver));
|
||||
strlcpy(card->driver, dev->dev.driver->name, sizeof(card->driver));
|
||||
|
||||
ret = pxa2xx_pcm_new(card, &pxa2xx_ac97_pcm_client, &pxa2xx_ac97_pcm);
|
||||
if (ret)
|
||||
|
|
|
|||
Loading…
Reference in a new issue