From 8a7d1400e421da30923c26a114b4d89fc5d482e5 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 30 Jul 2005 00:49:41 +0000 Subject: strncat -> strlcat svn path=/trunk/; revision=4188 --- unmime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unmime.c') 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); } -- cgit v1.2.3