--- parser3/src/targets/cgi/parser3.C 2001/09/26 10:32:26 1.113 +++ parser3/src/targets/cgi/parser3.C 2001/10/08 09:04:08 1.117 @@ -4,7 +4,7 @@ Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: parser3.C,v 1.113 2001/09/26 10:32:26 parser Exp $ + $Id: parser3.C,v 1.117 2001/10/08 09:04:08 parser Exp $ */ #include "pa_config_includes.h" @@ -25,18 +25,22 @@ // consts extern const char *main_RCSIds[]; +#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 *parser_RCSIds[]; +extern const char *parser3_RCSIds[]; const char **RCSIds[]={ main_RCSIds, +#ifdef USE_SMTP smtp_RCSIds, +#endif gd_RCSIds, classes_RCSIds, types_RCSIds, - parser_RCSIds, + parser3_RCSIds, 0 }; @@ -93,7 +97,12 @@ void SAPI::log(Pool& pool, const char *f // message va_list args; va_start(args,fmt); - vfprintf(f, fmt, args); + + char buf[MAX_STRING]; + size_t size=vsnprintf(buf, MAX_STRING, fmt, args); + remove_crlf(buf, buf+size); + + fwrite(buf, size, 1, f); va_end(args); // newline fprintf(f, "\n");