openbsd-ports/sysutils/cfengine/patches/patch-src_instrument_c
okan 57f6993fcd - update to 2.2.10
- update MASTER_SITES

ok sturm@ william@
2009-09-01 14:25:15 +00:00

13 lines
518 B
Plaintext

$OpenBSD: patch-src_instrument_c,v 1.3 2009/09/01 14:25:15 okan Exp $
--- src/instrument.c.orig Fri Feb 27 15:18:32 2009
+++ src/instrument.c Thu May 28 17:32:35 2009
@@ -542,7 +542,7 @@ while (dbcp->c_get(dbcp, &key, &value, DB_NEXT) == 0)
tthen = (time_t)then;
- snprintf(datebuf,CF_BUFSIZE-1,"%s",ctime(&tthen));
+ snprintf(datebuf,CF_MAXVARSIZE-1,"%s",ctime(&tthen));
datebuf[strlen(datebuf)-9] = '\0'; /* Chop off second and year */
snprintf(addr,15,"%s",hostname+1);