lkml.org 
[lkml]   [2021]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -next] ALSA: gus: Replace unsafe strcpy() with strscpy()
On Fri, 14 May 2021 09:05:07 +0200,
YueHaibing wrote:
>
> Fix smatch warning:
> sound/isa/gus/gus_main.c:396 snd_gus_check_version() error:
> strcpy() 'card->longname' too large for 'card->shortname' (80 vs 32)
>
> Even if this is not a real bug since the longest length of card->longname
> now is 31, replace strcpy() with strscpy() in order to avoid possible
> future mistake.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Applied, thanks.


Takashi

\
 
 \ /
  Last update: 2021-05-14 09:48    [W:0.180 / U:1.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site