]> Pileus Git - ~andy/fetchmail/commitdiff
strncat -> strlcat
authorMatthias Andree <matthias.andree@gmx.de>
Sat, 30 Jul 2005 00:49:41 +0000 (00:49 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Sat, 30 Jul 2005 00:49:41 +0000 (00:49 -0000)
svn path=/trunk/; revision=4188

unmime.c

index 5a442cb5b3593a2b6ecb06c82330dad10180e99b..780c704ef96a364ce9210e86ab8a7f52758ac0b8 100644 (file)
--- a/unmime.c
+++ b/unmime.c
@@ -467,7 +467,7 @@ int MimeBodyType(unsigned char *hdrs, int WantDecode)
        /* The actual delimiter is "--" followed by 
           the boundary string */
        strcpy(MultipartDelimiter, "--");
-       strncat(MultipartDelimiter, p1, MAX_DELIM_LEN);
+       strlcat(MultipartDelimiter, p1, sizeof(MultipartDelimiter));
        MultipartDelimiter[sizeof(MultipartDelimiter)-1] = '\0';
        BodyType = (MSG_IS_8BIT | MSG_NEEDS_DECODE);
       }