--- parser3/src/main/pa_common.C 2004/01/22 07:09:50 1.160.2.1 +++ parser3/src/main/pa_common.C 2003/11/03 13:20:30 1.161 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_COMMON_C="$Date: 2004/01/22 07:09:50 $"; +static const char* IDENT_COMMON_C="$Date: 2003/11/03 13:20:30 $"; #include "pa_common.h" #include "pa_exception.h" @@ -611,6 +611,11 @@ File_read_result file_read(Request_chars result.headers=http.headers; } else { #endif + if(params && params->count()) + throw Exception("parser.runtime", + 0, + "invalid option passed"); + File_read_action_info info={&result.str, &result.length}; result.success=file_read_action_under_lock(file_spec, "read", file_read_action, &info, @@ -1099,11 +1104,6 @@ int __vsnprintf(char* b, size_t s, const // note: on win32& maybe somewhere else // vsnprintf do not writes terminating 0 in 'buffer full' case, reducing --s; - - // clients do not check for negative 's', feature: ignore such prints - if((ssize_t)s<0) - return 0; - #if _MSC_VER /* win32: