#include #include "fortify.h" char *__strncpy_chk(char *restrict d, const char *restrict s, size_t n, size_t dn) { if(dn < n) __chk_fail(); return strncpy(d, s, n); }