From 0162912fdf0c3092a5ed9fdac4effef80118b3cd Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Wed, 27 Feb 2002 00:39:01 +0000 Subject: [PATCH] Grrrrr..... We should really use the correct line endings on all platforms. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93582 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/mod_ssl.h | 1 + modules/ssl/ssl_engine_log.c | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ssl/mod_ssl.h b/modules/ssl/mod_ssl.h index a8699ad55b..a69e8a0bdf 100644 --- a/modules/ssl/mod_ssl.h +++ b/modules/ssl/mod_ssl.h @@ -101,6 +101,7 @@ #include "util_script.h" #include "util_filter.h" #include "mpm.h" +#include "apr.h" #include "apr_strings.h" #include "apr_tables.h" #include "apr_lib.h" diff --git a/modules/ssl/ssl_engine_log.c b/modules/ssl/ssl_engine_log.c index e0b599dc19..0c0615a367 100644 --- a/modules/ssl/ssl_engine_log.c +++ b/modules/ssl/ssl_engine_log.c @@ -168,7 +168,7 @@ void ssl_log(server_rec *s, int level, const char *msg, ...) char lstr[20]; char vstr[1024]; char str[1024]; - char nstr[2]; + char *nstr; apr_size_t len; apr_exploded_time_t t; va_list ap; @@ -215,10 +215,9 @@ void ssl_log(server_rec *s, int level, const char *msg, ...) /* determine whether newline should be written */ if (add & SSL_NO_NEWLINE) - nstr[0] = NUL; + nstr = NUL; else { - nstr[0] = '\n'; - nstr[1] = NUL; + nstr = APR_EOL_STR; } /* determine level name */ -- 2.50.1