--- a/include/compat.h +++ b/include/compat.h @@ -8,4 +8,5 @@ #define COMPAT_H char *compat_strdup (const char *); +char *safe_strncpy (char *dest, const char *src, size_t size); #endif