OTHER·중요도 6·2026. 06. 21.·GeekNews
Linux, 6년·360개 이상 패치 끝에 strncpy API 제거
── KO ──────────────────
Linux 7.2에서 strncpy API가 최종 제거되었습니다.
Linux 7.2에서는 6년의 개발과 360개 이상의 패치를 거쳐 커널 내의 strncpy API가 제거되었습니다. 이 API는 메모리 복사 시 NUL 종료 처리의 비직관성으로 인해 여러 문제를 일으켰습니다. 이로써 오래전부터 폐기 예정이던 문자열 복사 인터페이스가 마침내 사라지게 되었습니다.
── EN ──────────────────
The strncpy API has been finally removed in Linux 7.2.
In Linux 7.2, after six years and over 360 patches, the strncpy API has been removed from the kernel. This API was problematic due to its non-intuitive NUL termination behavior, resulting in bugs for many years. The removal marks the end of a long-planned deprecation of this string copy interface.