summaryrefslogtreecommitdiff
blob: 5fab91a38a4747e44fa8c8449301d07d5e8e0730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff -u ntop_original/util.c ntop/util.c
--- ntop_original/util.c	Thu Dec 27 02:54:29 2001
+++ ntop/util.c	Thu Apr 25 17:34:55 2002
@@ -2179,20 +2179,20 @@
 #if 0 
 	switch(traceLevel) {
 	case 0:
-	  syslog(LOG_ERR, buf);
+	  syslog(LOG_ERR, "%s", buf);
 	  break;
 	case 1:
-	  syslog(LOG_WARNING, buf);
+	  syslog(LOG_WARNING, "%s", buf);
 	  break;
 	case 2:
-	  syslog(LOG_NOTICE, buf);
+	  syslog(LOG_NOTICE, "%s", buf);
 	  break;
 	default:
-	  syslog(LOG_INFO, buf);
+	  syslog(LOG_INFO, "%s", buf);
 	  break;
 	}
 #else
-	syslog(LOG_ERR, buf);
+	syslog(LOG_ERR, "%s", buf);
 #endif
       }
 #endif