X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=strlcat.c;h=0af16670e01eb25b2b399bc373de131b3736951f;hb=f16d8d23439b5569f0c2e1af22494708b507f277;hp=7b9673f9381539cc760c78f060e74d1052976c0a;hpb=36da2cba5b16489e11d6a250d1133d60edfb78ce;p=~andy%2Ffetchmail diff --git a/strlcat.c b/strlcat.c index 7b9673f9..0af16670 100644 --- a/strlcat.c +++ b/strlcat.c @@ -17,11 +17,16 @@ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "config.h" +#include "fetchmail.h" + #include #include #include -#if !HAVE_STRLCAT +#include "fm_strl.h" + +#ifndef HAVE_STRLCAT /* * Appends src to string dst of size siz (unlike strncat, siz is the * full size of dst, not space left). At most siz-1 characters @@ -30,10 +35,7 @@ * If retval >= siz, truncation occurred. */ size_t -strlcat(dst, src, siz) - char *dst; - const char *src; - size_t siz; +strlcat(char *dst, const char *src, size_t siz) { char *d = dst; const char *s = src;