--- ./althttpd.c +++ ./althttpd.c @@ -952,11 +952,11 @@ ** (14) User agent ** (15) Remote user ** (16) Bytes of URL that correspond to the SCRIPT_NAME ** (17) Line number in source file */ - +#define Escape(X) X /* (1) */ altfmt_DateTime( zPos, zEnd, &dt, &zPos ); astr(","); /* (2) */ astr2( zRemoteAddr ); /* (3) */ astr( "\"" ); astr( zHttpScheme ); @@ -988,10 +988,11 @@ #endif astr( "\n" ); priorSelf = self; priorChild = children; #endif +#undef Escape if( zPos ){ assert( zPos&msgbuf[0] ); *zPos = 0; write( logfd, msgbuf, (size_t)(zPos - &msgbuf[0]) );