From: Tanner Love <[email protected]> Date: Mon, 8 Jun 2020 15:37:15 -0400
> From: tannerlove <[email protected]> > > If user passed an interface option longer than 15 characters, then > device.ifr_name and hwtstamp.ifr_name became non-null-terminated > strings. The compiler warned about this: > > timestamping.c:353:2: warning: ‘strncpy’ specified bound 16 equals \ > destination size [-Wstringop-truncation] > 353 | strncpy(device.ifr_name, interface, sizeof(device.ifr_name)); > > Fixes: cb9eff097831 ("net: new user space API for time stamping of incoming > and outgoing packets") > Signed-off-by: Tanner Love <[email protected]> > Acked-by: Willem de Bruijn <[email protected]> Applied, thank you.
