fixed bug in logf.
authorkramm <kramm>
Wed, 16 Jan 2002 12:02:29 +0000 (12:02 +0000)
committerkramm <kramm>
Wed, 16 Jan 2002 12:02:29 +0000 (12:02 +0000)
lib/log.c

index ffa0e17..ace2987 100644 (file)
--- a/lib/log.c
+++ b/lib/log.c
@@ -253,7 +253,7 @@ void logf(const char* format, ...)
     /* speed up hack */
     if(format[0]=='<') {
        char*z = "fewnvd";
-       char*x = strchr(z,format[0]);
+       char*x = strchr(z,format[1]);
        if(x && (x-z)>maxloglevel)
                return;
     }