--- parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/09/26 11:45:00 1.45 +++ parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/10/09 14:30:19 1.49 @@ -4,7 +4,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: mod_parser3.C,v 1.45 2001/09/26 11:45:00 parser Exp $ + $Id: mod_parser3.C,v 1.49 2001/10/09 14:30:19 parser Exp $ */ #include "httpd.h" @@ -35,22 +35,28 @@ // consts extern const char *main_RCSIds[]; -#ifdef SMTP +#ifdef USE_SMTP extern const char *smtp_RCSIds[]; #endif extern const char *gd_RCSIds[]; extern const char *classes_RCSIds[]; extern const char *types_RCSIds[]; extern const char *ApacheModuleParser3_RCSIds[]; +#ifdef XML +extern const char *xalan_patched_RCSIds[]; +#endif const char **RCSIds[]={ main_RCSIds, -#ifdef SMTP +#ifdef USE_SMTP smtp_RCSIds, #endif gd_RCSIds, classes_RCSIds, types_RCSIds, ApacheModuleParser3_RCSIds, +#ifdef XML + xalan_patched_RCSIds, +#endif 0 }; @@ -119,7 +125,8 @@ void SAPI::log(Pool& pool, const char *f va_list args; va_start(args,fmt); char buf[MAX_STRING]; - vsnprintf(buf, MAX_STRING, fmt, args); + size_t size=vsnprintf(buf, MAX_STRING, fmt, args); + remove_crlf(buf, buf+size); ap_log_rerror(0, 0, APLOG_ERR | APLOG_NOERRNO, r, "%s", buf); va_end(args); }