[exim-cvs] Apply patch from Dmitry Isaikin fixing log.c form…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim Git Commits Mailing List
Date:  
À: exim-cvs
Sujet: [exim-cvs] Apply patch from Dmitry Isaikin fixing log.c format string.
Gitweb: http://git.exim.org/exim.git/commitdiff/d690cbdcc1eae1eb60e83caf6800f768b733dadd
Commit:     d690cbdcc1eae1eb60e83caf6800f768b733dadd
Parent:     5cfd2e57f5842d83cd33650ae404b64e50e6ed65
Author:     Phil Pennock <pdp@???>
AuthorDate: Wed Oct 5 19:36:34 2011 -0400
Committer:  Phil Pennock <pdp@???>
CommitDate: Wed Oct 5 19:36:34 2011 -0400


    Apply patch from Dmitry Isaikin fixing log.c format string.


    fixes bug 1152.
---
 doc/doc-txt/ChangeLog |    5 +++++
 src/src/log.c         |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index b58444a..9a518e9 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -123,6 +123,11 @@ PP/11 match_* no longer expand right-hand-side by default.

PP/12 fix uninitialised greeting string from PP/03 (smtps client support).

+PP/13 shell and compiler warnings fixes for RC1-RC3 changes.
+
+PP/14 fix log_write() format string regression from TF/03.
+      Bugzilla 1152.  Patch from Dmitry Isaikin.
+


 Exim version 4.76
 -----------------
diff --git a/src/src/log.c b/src/src/log.c
index fbab77c..a3ec18d 100644
--- a/src/src/log.c
+++ b/src/src/log.c
@@ -713,7 +713,7 @@ DEBUG(D_any|D_v)
       }
     }


-  sprintf(CS ptr, "%s%s%s%s%s\n  ",
+  sprintf(CS ptr, "%s%s%s%s\n  ",
     ((flags & LOG_MAIN) != 0)?    " MAIN"   : "",
     ((flags & LOG_PANIC) != 0)?   " PANIC"  : "",
     ((flags & LOG_PANIC_DIE) == LOG_PANIC_DIE)? " DIE" : "",