Skip to content

Commit 0162912

Browse files
author
Ryan Bloom
committed
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
1 parent 2acf5e5 commit 0162912

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

modules/ssl/mod_ssl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
#include "util_script.h"
102102
#include "util_filter.h"
103103
#include "mpm.h"
104+
#include "apr.h"
104105
#include "apr_strings.h"
105106
#include "apr_tables.h"
106107
#include "apr_lib.h"

modules/ssl/ssl_engine_log.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void ssl_log(server_rec *s, int level, const char *msg, ...)
168168
char lstr[20];
169169
char vstr[1024];
170170
char str[1024];
171-
char nstr[2];
171+
char *nstr;
172172
apr_size_t len;
173173
apr_exploded_time_t t;
174174
va_list ap;
@@ -215,10 +215,9 @@ void ssl_log(server_rec *s, int level, const char *msg, ...)
215215

216216
/* determine whether newline should be written */
217217
if (add & SSL_NO_NEWLINE)
218-
nstr[0] = NUL;
218+
nstr = NUL;
219219
else {
220-
nstr[0] = '\n';
221-
nstr[1] = NUL;
220+
nstr = APR_EOL_STR;
222221
}
223222

224223
/* determine level name */

0 commit comments

Comments
 (0)