mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
src/nhttpd: fix segfault if logging on
This commit is contained in:
@@ -77,7 +77,10 @@ void CLogging::printf(const char *fmt, ...) {
|
||||
va_end(arglist);
|
||||
|
||||
pthread_mutex_lock(&Log_mutex);
|
||||
::printf(buffer);
|
||||
buffer[bufferlen-1]='\0';
|
||||
::printf("%s",buffer);
|
||||
fflush(stdout);
|
||||
|
||||
if (LogToFile) {
|
||||
; //FIXME Logging to File
|
||||
}
|
||||
|
Reference in New Issue
Block a user