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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=852cd13b6a4fc7354826917d2a5c709312540317;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/modules/ssl@93582 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/mod_ssl.h b/mod_ssl.h index a8699ad55bd..a69e8a0bdf9 100644 --- a/mod_ssl.h +++ b/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/ssl_engine_log.c b/ssl_engine_log.c index e0b599dc190..0c0615a3675 100644 --- a/ssl_engine_log.c +++ b/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 */