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()";
* (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);