From 99f1177367b1d44946192755bd1d2b9d15649820 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 31 Jan 2016 03:26:41 +0100 Subject: [PATCH] Don't pass extraneous argument to sprintf() Only show the error description, not the chunk of whichever text we failed to write to file, in the error message given when copying to MH mailbox failed. --- src/osdep/unix/mh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osdep/unix/mh.c b/src/osdep/unix/mh.c index 005000d..23036ea 100644 --- a/src/osdep/unix/mh.c +++ b/src/osdep/unix/mh.c @@ -934,7 +934,7 @@ long mh_ping (MAILSTREAM *stream) unlink (LOCAL->buf);/* flush this file */ } sprintf (tmp,"Message copy to MH mailbox failed: %.80s", - s,strerror (errno)); + strerror (errno)); mm_log (tmp,ERROR); r = 0; /* stop the snarf in its tracks */ }