]> Pileus Git - ~andy/fetchmail/blobdiff - strlcpy.c
Let distcheck call configure --with-ssl.
[~andy/fetchmail] / strlcpy.c
index 64d9c575ed67ff601a7de0d6ab9664f08a846d2e..5963dfe323f998a059f8a81d04c1a8414ff6ee12 100644 (file)
--- a/strlcpy.c
+++ b/strlcpy.c
 #include <assert.h>
 #include <string.h>
 
-#if !HAVE_STRLCPY
+#include "fm_strl.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).
  * Returns strlen(src); if retval >= siz, truncation occurred.
  */
 size_t
-strlcpy(dst, src, siz)
-       char *dst;
-       const char *src;
-       size_t siz;
+strlcpy(char *dst, const char *src, size_t siz)
 {
        char *d = dst;
        const char *s = src;