2007-11-21 22:09:52 +01:00
|
|
|
--- src/cf.defs.h
|
|
|
|
+++ src/cf.defs.h
|
2008-01-15 16:02:07 +01:00
|
|
|
@@ -456,7 +456,7 @@
|
2007-11-21 22:09:52 +01:00
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
#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
|
|
|
|
@@ -523,7 +523,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);
|