--- parser3/src/targets/cgi/parser3.C 2002/12/05 09:41:56 1.207 +++ parser3/src/targets/cgi/parser3.C 2002/12/05 10:43:23 1.209 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_PARSER3_C="$Date: 2002/12/05 09:41:56 $"; +static const char* IDENT_PARSER3_C="$Date: 2002/12/05 10:43:23 $"; #include "pa_config_includes.h" @@ -88,6 +88,9 @@ static void log(const char *fmt, va_list if(!opened) f=stderr; + // use no memory [so that we could log out-of-memory error] + setbuf(f, 0); // stderr stream is unbuffered by default, but still... + // prefix time_t t=time(0); if(const char *stamp=ctime(&t)) { // never saw that @@ -206,10 +209,10 @@ void SAPI::send_body(Pool& , const void // static void full_file_spec(const char *file_name, char *buf, size_t buf_size) { - if(file_name) + if(file_name && *file_name) if(file_name[0]=='/' #ifdef WIN32 - || (file_name[0] && file_name[1]==':') + || file_name[1]==':' #endif ) strncpy(buf, file_name, buf_size);