Update RSS feed for the 3.0.33 releases
[privoxy.git] / errlog.c
index 969c0bd..e1d9925 100644 (file)
--- 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++;
             }