From e413cba972feb60d3d4d104c0c93320435610d1b Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Thu, 28 Oct 1999 14:12:54 +1000 Subject: Disabled code based on autoconf tests --- strlcpy.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'strlcpy.c') diff --git a/strlcpy.c b/strlcpy.c index 300a28bc3..4df4080d6 100644 --- a/strlcpy.c +++ b/strlcpy.c @@ -34,6 +34,9 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp #include #include +#include "config.h" +#ifndef HAVE_STRLCPY + /* * Copy src to string dst of size siz. At most siz-1 characters * will be copied. Always NUL terminates (unless siz == 0). @@ -66,3 +69,5 @@ size_t strlcpy(dst, src, siz) return(s - src - 1); /* count does not include NUL */ } + +#endif /* !HAVE_STRLCPY */ -- cgit v1.2.3