X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=errlog.c;h=e1d99259a745b89dd65a8589dc98c0ebf369f225;hp=969c0bd79f46660f0b537efb50d17b06a2349333;hb=e007b974a0fa3521aef462c658a769ea7b23c7da;hpb=c7c23a7446807a7529c81cc74ef9c8412bae929c diff --git a/errlog.c b/errlog.c index 969c0bd7..e1d99259 100644 --- a/errlog.c +++ b/errlog.c @@ -583,7 +583,7 @@ static const char *get_log_level_string(int loglevel) case LOG_LEVEL_CONNECT: log_level_string = "Connect"; break; - case LOG_LEVEL_TAGGING: + case LOG_LEVEL_TAGGING: log_level_string = "Tagging"; break; case LOG_LEVEL_WRITING: @@ -683,6 +683,10 @@ void log_error(int loglevel, const char *fmt, ...) #ifdef FUZZ if (debug == LOG_LEVEL_STFU) { + if (loglevel == LOG_LEVEL_FATAL) + { + exit(1); + } return; } #endif @@ -815,7 +819,10 @@ void log_error(int loglevel, const char *fmt, ...) int ret = snprintf(outbuf + length, log_buffer_size - length - 2, "\\x%.2x", (unsigned char)*sval); assert(ret == 4); - length += 4; + if (ret == 4) + { + length += 4; + } } sval++; }