From 940401df1fcd89fb2cf6cdac4e6ab1f6540c2398 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 3 Jan 2019 04:21:04 -0600 Subject: [PATCH] imap-2007f-format-security.patch --- src/osdep/unix/flocklnx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osdep/unix/flocklnx.c b/src/osdep/unix/flocklnx.c index ca0112a..aee58bf 100644 --- a/src/osdep/unix/flocklnx.c +++ b/src/osdep/unix/flocklnx.c @@ -57,7 +57,7 @@ int safe_flock (int fd,int op) case ENOLCK: /* lock table is full */ sprintf (tmp,"File locking failure: %s",strerror (errno)); mm_log (tmp,WARN); /* give the user a warning of what happened */ - if (!logged++) syslog (LOG_ERR,tmp); + if (!logged++) syslog (LOG_ERR, "%s", tmp); /* return failure if non-blocking lock */ if (op & LOCK_NB) return -1; sleep (5); /* slow down in case it loops */