]> granicus.if.org Git - apache/commitdiff
Grrrrr..... We should really use the correct line endings on all
authorRyan Bloom <rbb@apache.org>
Wed, 27 Feb 2002 00:39:01 +0000 (00:39 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 27 Feb 2002 00:39:01 +0000 (00:39 +0000)
platforms.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93582 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/mod_ssl.h
modules/ssl/ssl_engine_log.c

index a8699ad55bd281e526bb5ffc33d5e7fd5440b1bc..a69e8a0bdf9f01cc2dcef17d9ec7f96880b1baae 100644 (file)
 #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"
index e0b599dc190646c743b073ded0cb840cd0a550cf..0c0615a36750badf9d8a2f746c89df10630bb39d 100644 (file)
@@ -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  */