From 0822df4d5f9d4313c3dbfb54e9e4c5624fb705a5 Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Sun, 24 May 2020 13:51:13 +0200 Subject: Add strlcpy(3) from OpenBSD The original file location in the OpenBSD tree - lib/libc/string/strlcpy.c --- slowcgi.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'slowcgi.c') diff --git a/slowcgi.c b/slowcgi.c index 660f95e..a422918 100644 --- a/slowcgi.c +++ b/slowcgi.c @@ -39,6 +39,12 @@ #include #include +#ifdef strlcpy +#define HAVE_STRLCPY +#else +size_t strlcpy(char *, const char *, size_t); +#endif + #ifndef __packed #define __packed __attribute__((packed)) #endif -- cgit v1.2.3-2-gb3c3