httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r569934 - /httpd/httpd/trunk/server/main.c
Date Mon, 27 Aug 2007 00:45:56 GMT
Author: trawick
Date: Sun Aug 26 17:45:56 2007
New Revision: 569934

URL: http://svn.apache.org/viewvc?rev=569934&view=rev
Log:
make sure we Unix weenies get a newline at the end 
of the message instead of our shell prompt

don't be overprotective of apr_ctime() by giving it 
more memory than it requires or nuking a newline 
which isn't there

Modified:
    httpd/httpd/trunk/server/main.c

Modified: httpd/httpd/trunk/server/main.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/main.c?rev=569934&r1=569933&r2=569934&view=diff
==============================================================================
--- httpd/httpd/trunk/server/main.c (original)
+++ httpd/httpd/trunk/server/main.c Sun Aug 26 17:45:56 2007
@@ -283,6 +283,7 @@
     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()";
@@ -299,11 +300,10 @@
          * (if they relied on global pools or mutexes, for example) then
          * the datestamp logic will need to be replaced.
          */
-        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);



Mime
View raw message