[PHP-DEV] cvs: /php3 main.c From: Ken Coar (ken.coar <email protected>)
Date: 09/02/99

coar Thu Sep 2 18:34:57 1999 EDT

  Modified files:
    /php3 main.c
  Log:
  
          Close bug #1955; force the log message to be interpreted as
          a string, rather than potentially as a format.
  
  
  
Index: php3/main.c
diff -u php3/main.c:1.504 php3/main.c:1.505
--- php3/main.c:1.504 Mon Aug 16 16:10:00 1999
+++ php3/main.c Thu Sep 2 18:34:56 1999
@@ -29,7 +29,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: main.c,v 1.504 1999/08/16 20:10:00 rasmus Exp $ */
+/* $Id: main.c,v 1.505 1999/09/02 22:34:56 coar Exp $ */
 
 /* #define CRASH_DETECTION */
 
@@ -268,7 +268,8 @@
 #if APACHE
         if (GLOBAL(php3_rqst)) {
 #if MODULE_MAGIC_NUMBER >= 19970831
- aplog_error(NULL, 0, APLOG_ERR | APLOG_NOERRNO, php3_rqst->server, log_message);
+ aplog_error(NULL, 0, APLOG_ERR | APLOG_NOERRNO, php3_rqst->server,
+ "%s", log_message);
 #else
                 log_error(log_message, php3_rqst->server);
 #endif

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>