You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2006/12/17 15:52:54 UTC
svn commit: r487990 - /tomcat/connectors/trunk/jk/native/common/jk_util.c
Author: rjung
Date: Sun Dec 17 06:52:54 2006
New Revision: 487990
URL: http://svn.apache.org/viewvc?view=rev&rev=487990
Log:
Use correct windows line endings for log file on WIN32 platform.
Modified:
tomcat/connectors/trunk/jk/native/common/jk_util.c
Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?view=diff&rev=487990&r1=487989&r2=487990
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Sun Dec 17 06:52:54 2006
@@ -420,7 +420,11 @@
{
int rc = 0;
/* Need to reserve space for newline and terminating zero byte. */
+#ifdef WIN32
+ static int usable_size = HUGE_BUFFER_SIZE-3;
+#else
static int usable_size = HUGE_BUFFER_SIZE-2;
+#endif
if (!l || !file || !fmt) {
return -1;
}
@@ -502,6 +506,9 @@
} else {
used = usable_size;
}
+#ifdef WIN32
+ buf[used++] = '\r';
+#endif
buf[used] = '\n';
buf[used+1] = 0;
va_end(args);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org