strncpy

Tag

Cards List
#strncpy

Linux Kills Strncpy

Hacker News Top · 2026-06-26 Cached

The Linux kernel has finally removed the dangerous strncpy function after six years and over 360 patches, replacing it with safer alternatives like strscpy that guarantee NULL-termination.

0 favorites 0 likes
#strncpy

Linux Eliminates the Strncpy API After Six Years of Work, 360 Patches

Hacker News Top · 2026-06-20 Cached

Linux 7.2 has finally removed the deprecated strncpy API after six years and over 360 patches due to its bug-prone nature, replacing it with safer alternatives like strscpy and memcpy.

0 favorites 0 likes
← Back to home

Submit Feedback