You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2015/01/14 17:37:32 UTC

svn commit: r1651726 - /subversion/trunk/subversion/svnserve/logger.c

Author: stefan2
Date: Wed Jan 14 16:37:32 2015
New Revision: 1651726

URL: http://svn.apache.org/r1651726
Log:
Fix the error formatting in svnserve's logger.

* subversion/svnserve/logger.c
  (logger__log_error): Actually write the newline to the stream.

Modified:
    subversion/trunk/subversion/svnserve/logger.c

Modified: subversion/trunk/subversion/svnserve/logger.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnserve/logger.c?rev=1651726&r1=1651725&r2=1651726&view=diff
==============================================================================
--- subversion/trunk/subversion/svnserve/logger.c (original)
+++ subversion/trunk/subversion/svnserve/logger.c Wed Jan 14 16:37:32 2015
@@ -134,7 +134,10 @@ logger__log_error(logger_t *logger,
           if (len > sizeof(errstr) - sizeof(APR_EOL_STR)) {
             len = sizeof(errstr) - sizeof(APR_EOL_STR);
           }
+
           memcpy(errstr + len, APR_EOL_STR, sizeof(APR_EOL_STR));
+          len += sizeof(APR_EOL_STR) -1;  /* add NL, ex terminating NUL */
+
           svn_error_clear(svn_stream_write(logger->stream, errstr, &len));
 
           continuation = "-";