File overflow.patch of Package clamsmtp

diff -urN clamsmtp-1.8_orig//common/smtppass.c clamsmtp-1.8/common/smtppass.c
--- clamsmtp-1.8_orig/common/smtppass.c	
+++ clamsmtp-1.8/common/smtppass.c	2009-07-10 11:55:46.000000000 +0200
@@ -1809,7 +1809,7 @@
         strerror_r(e, buf + len, MAX_MSGLEN - len); */
             
         sp_lock();
-            strncat(buf, strerror(e), MAX_MSGLEN);
+            strncat(buf, strerror(e), sizeof(buf)-strlen(buf)-1); //MAX_MSGLEN);
         sp_unlock();
     }