On 2022/12/15 19:50, Mariusz Tkaczyk wrote: > On Wed, 14 Dec 2022 11:17:41 +0800 > lixiaokeng <lixiaokeng@xxxxxxxxxx> wrote: > >> strcpy(st->devnm, devnm); > > Hi, > Please use strncpy or snprintf here. Thanks for your advice, but the length of devnm is not a defined value. I will keep it as the old codes. > > Thanks, > Mariusz > > . >