diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-29 10:26:12 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-29 10:26:12 -0400 |
commit | 57a4451d26eef4ccbf3b32fd116295f001c18cb4 (patch) | |
tree | d428b8eb301cc0a5125eb0af65eeb21b82255343 /sound/arm | |
parent | 97f44f56ca94709f45bc348f5d2c88696eae5f9b (diff) |
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 <tiwai@suse.de>
Diffstat (limited to 'sound/arm')
-rw-r--r-- | sound/arm/pxa2xx-ac97.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c index 5066a3768b28..9a2ac1e0f77a 100644 --- a/sound/arm/pxa2xx-ac97.c +++ b/sound/arm/pxa2xx-ac97.c | |||
@@ -185,7 +185,7 @@ static int pxa2xx_ac97_probe(struct platform_device *dev) | |||
185 | goto err; | 185 | goto err; |
186 | 186 | ||
187 | card->dev = &dev->dev; | 187 | card->dev = &dev->dev; |
188 | strncpy(card->driver, dev->dev.driver->name, sizeof(card->driver)); | 188 | strlcpy(card->driver, dev->dev.driver->name, sizeof(card->driver)); |
189 | 189 | ||
190 | ret = pxa2xx_pcm_new(card, &pxa2xx_ac97_pcm_client, &pxa2xx_ac97_pcm); | 190 | ret = pxa2xx_pcm_new(card, &pxa2xx_ac97_pcm_client, &pxa2xx_ac97_pcm); |
191 | if (ret) | 191 | if (ret) |