$OpenBSD: patch-modules_db_berkeley_km_bdb_lib_c,v 1.2 2015/11/20 10:09:52 sthen Exp $
--- modules/db_berkeley/km_bdb_lib.c.orig	Fri Oct  2 15:35:17 2015
+++ modules/db_berkeley/km_bdb_lib.c	Mon Oct 19 14:00:40 2015
@@ -719,7 +719,7 @@ int km_bdblib_create_journal(table_p _tp)
 {
 	char *s;
 	char fn[1024];
-	char d[64];
+	char d[128];
 	FILE *fp = NULL;
 	struct tm *t;
 	int bl;
@@ -740,7 +740,7 @@ int km_bdblib_create_journal(table_p _tp)
 	s+=_tp->name.len;
 	
 	t = localtime( &tim );
-	bl=strftime(d,128,"-%Y%m%d%H%M%S.jnl",t);
+	bl=strftime(d,sizeof(d),"-%Y%m%d%H%M%S.jnl",t);
 	strncpy(s, d, bl);
 	s+= bl;
 	*s = 0;
