--- clamsmtp-1.9/common/smtppass.c.strncat 2007-05-27 04:00:18 +0400 +++ clamsmtp-1.9/common/smtppass.c 2007-11-28 12:45:51 +0300 @@ -1817,7 +1817,7 @@ static void vmessage(spctx_t* ctx, int l strerror_r(e, buf + len, MAX_MSGLEN - len); */ sp_lock(); - strncat(buf, strerror(e), MAX_MSGLEN); + strlcat(buf, strerror(e), MAX_MSGLEN); sp_unlock(); }