From: Ryan Bloom Date: Wed, 27 Feb 2002 00:39:01 +0000 (+0000) Subject: Grrrrr..... We should really use the correct line endings on all X-Git-Tag: 2.0.33~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8c76eed100d3e6b05493caa8c6f5c5125868662;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/ssl/mod_ssl.h b/modules/ssl/mod_ssl.h index a8699ad55bd..a69e8a0bdf9 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 e0b599dc190..0c0615a3675 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 */