23 lines
634 B
Diff
23 lines
634 B
Diff
--- src/cf.defs.h
|
|
+++ src/cf.defs.h
|
|
@@ -462,7 +462,7 @@
|
|
#define CF_PERSISTENCE 30
|
|
#define LDT_BUFSIZE 10
|
|
#define CF_GRAINS 64
|
|
-#define ATTR 11
|
|
+#define ATTR 20
|
|
#define CF_NETATTR 7 /* icmp udp dns tcpsyn tcpfin tcpack */
|
|
#define PH_LIMIT 10
|
|
#define CF_WEEK (7.0*24.0*3600.0)
|
|
--- src/instrument.c
|
|
+++ src/instrument.c
|
|
@@ -547,7 +547,7 @@
|
|
|
|
tthen = (time_t)then;
|
|
|
|
- snprintf(datebuf,CF_BUFSIZE-1,"%s",ctime(&tthen));
|
|
+ snprintf(datebuf,sizeof(datebuf),"%s",ctime(&tthen));
|
|
datebuf[strlen(datebuf)-9] = '\0'; /* Chop off second and year */
|
|
|
|
snprintf(addr,15,"%s",hostname+1);
|