aboutsummaryrefslogtreecommitdiffstats
path: root/unmime.c
diff options
context:
space:
mode:
Diffstat (limited to 'unmime.c')
-rw-r--r--unmime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/unmime.c b/unmime.c
index d7882fa0..ead672e0 100644
--- a/unmime.c
+++ b/unmime.c
@@ -468,6 +468,7 @@ int MimeBodyType(unsigned char *hdrs, int WantDecode)
the boundary string */
strcpy(MultipartDelimiter, "--");
strncat(MultipartDelimiter, p1, MAX_DELIM_LEN);
+ MultipartDelimiter[sizeof(MultipartDelimiter)-1] = '\0';
BodyType = (MSG_IS_8BIT | MSG_NEEDS_DECODE);
}
}