SF.net SVN: mahogany:[7553] trunk/M/lib/imap/src/osdep/unix/flocklnx.c

[email protected] Fri, 16 Jan 2009 14:12:17 +0000
Newsgroups gmane.mail.mahogany.cvs
Message-ID <[email protected]>
Revision: 7553
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7553&view=rev
Author:   vadz
Date:     2009-01-16 14:12:16 +0000 (Fri, 16 Jan 2009)

Log Message:
-----------
fix -Wformat warning under new Ubuntu

Modified Paths:
--------------
    trunk/M/lib/imap/src/osdep/unix/flocklnx.c

Modified: trunk/M/lib/imap/src/osdep/unix/flocklnx.c
===================================================================
--- trunk/M/lib/imap/src/osdep/unix/flocklnx.c	2008-11-06 16:34:55 UTC (rev 7552)
+++ trunk/M/lib/imap/src/osdep/unix/flocklnx.c	2009-01-16 14:12:16 UTC (rev 7553)
@@ -57,7 +57,7 @@
     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 */


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword