]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Thanks to Jeff, identify a wasted byte and ensure this message
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 27 Aug 2007 01:05:52 +0000 (01:05 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 27 Aug 2007 01:05:52 +0000 (01:05 +0000)
is the final word (as in end-of-the-line final word).

Backport: r569934

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@569941 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
server/main.c

diff --git a/CHANGES b/CHANGES
index bed6238a914ccac76cef60c3e02b6e39a8db38a8..2dcaa43ca194c026d8cfa7eed8ab2f31f1847707 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -28,7 +28,7 @@ Changes with Apache 2.2.6
 
   *) main core: Emit errors during the initial apr_app_initialize()
      or apr_pool_create() (when apr-based error reporting is not ready).
-     [William Rowe]
+     [William Rowe, Jeff Trawick]
 
   *) log core: fix the new piped logger case where we couldn't connect 
      the replacement stderr logger's stderr to the NULL stdout stream.  
index f41fcb9baaf4cb052e088d7855ff5891d95d4014..22c0b68369cd23fd5aeffd50d3a75b49c3f580dd 100644 (file)
@@ -268,6 +268,7 @@ static process_rec *init_process(int *argc, const char * const * *argv)
     apr_pool_t *cntx;
     apr_status_t stat;
     const char *failed = "apr_app_initialize()";
+
     stat = apr_app_initialize(argc, argv, NULL);
     if (stat == APR_SUCCESS) {
         failed = "apr_pool_create()";
@@ -279,11 +280,10 @@ static process_rec *init_process(int *argc, const char * const * *argv)
          * but APR doesn't exist yet, we can't use it for reporting
          * these earliest two failures;
          */
-        char ctimebuff[APR_CTIME_LEN + 1];
+        char ctimebuff[APR_CTIME_LEN];
         apr_ctime(ctimebuff, apr_time_now());
-        ctimebuff[APR_CTIME_LEN] = '\0';
         fprintf(stderr, "[%s] [crit] (%d) %s: %s failed "
-                        "to initial context, exiting", 
+                        "to initial context, exiting\n", 
                         ctimebuff, stat, (*argv)[0], failed);
         apr_terminate();
         exit(1);