$OpenBSD: patch-modules_db_berkeley_bdb_lib_c,v 1.1 2012/05/09 21:27:47 sthen Exp $
--- modules/db_berkeley/bdb_lib.c.orig	Mon Apr 23 19:38:24 2012
+++ modules/db_berkeley/bdb_lib.c	Mon Apr 23 19:38:50 2012
@@ -671,7 +671,7 @@ int bdblib_create_journal(bdb_db_p _db_p, bdb_table_p 
 {
 	char *s;
 	char fn[1024];
-	char d[64];
+	char d[128];
 	FILE *fp = NULL;
 	struct tm *t;
 	int bl;
@@ -691,7 +691,7 @@ int bdblib_create_journal(bdb_db_p _db_p, bdb_table_p 
 	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;
