]> Pileus Git - ~andy/fetchmail/blobdiff - strlcpy.c
Fix typo repsonsible -> responsible.
[~andy/fetchmail] / strlcpy.c
index 64d9c575ed67ff601a7de0d6ab9664f08a846d2e..c9f0ef2b27b09021cc701866bc85f7770d1d1594 100644 (file)
--- a/strlcpy.c
+++ b/strlcpy.c
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include "config.h"
+#include "fetchmail.h"
+
 #include <sys/types.h>
 #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;