aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--unmime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unmime.c b/unmime.c
index 5a442cb5..780c704e 100644
--- 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);
}