Linux Eliminates the Strncpy API After Six Years of Work, 360 Patches
Linux 7.2 has successfully eliminated the deprecated strncpy API from the kernel after six years of work and over 360 patches, addressing a persistent source of bugs caused by counter-intuitive semantics and performance issues. The removal required replacing all existing strncpy uses with safer alternatives like strscpy(), strscpy_pad(), strtomem_pad(), memcpy_and_pad(), or memcpy() depending on the use case.