Re: [PATCH net-next v1 11/11] net: pktgen: fix code style (WARNING: Prefer strscpy over strcpy)
From: Jakub Kicinski
Date: Mon Apr 14 2025 - 17:58:24 EST
On Thu, 10 Apr 2025 09:17:48 +0200 Peter Seiderer wrote:
> memset(pkt_dev->dst_min, 0, sizeof(pkt_dev->dst_min));
> - strcpy(pkt_dev->dst_min, buf);
> + strscpy(pkt_dev->dst_min, buf);
these should probably be strcpy_pad()