diff --git a/src/nhttpd/yhttpd_core/helper.cpp b/src/nhttpd/yhttpd_core/helper.cpp index 1dabc4db6..ee457860f 100644 --- a/src/nhttpd/yhttpd_core/helper.cpp +++ b/src/nhttpd/yhttpd_core/helper.cpp @@ -81,14 +81,7 @@ std::string timeString(time_t time) { //------------------------------------------------------------------------- std::string string_printf(const char *fmt, ...) { va_list arglist; - va_start (arglist, fmt); - int len = vsnprintf (NULL, 0, fmt, arglist); - va_end (arglist); const int bufferlen = 4*1024; - if(len >= bufferlen){ - printf("string_printf: error: buffer overflow : len %i line %i\n",len,__LINE__); - return "error"; - } char buffer[bufferlen] = {0}; va_start(arglist, fmt); vsnprintf(buffer, bufferlen, fmt, arglist);