From 1155db4c67c96bea5052646561df07702be0eaf2 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 15 May 1998 01:03:21 +0000 Subject: be more gentle with buffers --- kerberosIV/kdb_util/kdb_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kerberosIV') diff --git a/kerberosIV/kdb_util/kdb_util.c b/kerberosIV/kdb_util/kdb_util.c index f01671a16f0..a3bad3b0665 100644 --- a/kerberosIV/kdb_util/kdb_util.c +++ b/kerberosIV/kdb_util/kdb_util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kdb_util.c,v 1.5 1998/05/11 11:27:56 art Exp $ */ +/* $OpenBSD: kdb_util.c,v 1.6 1998/05/15 01:03:20 art Exp $ */ /* $KTH: kdb_util.c,v 1.36 1997/12/05 04:21:50 assar Exp $ */ /* @@ -213,8 +213,8 @@ add_file(void *db, FILE *file) asprintf(&format, "%%%ds %%%ds %%d %%d %%d %%hd %%lx %%lx %%%ds %%%ds %%%ds %%%ds", - ANAME_SZ, INST_SZ, sizeof(exp_date), sizeof(mod_date), - ANAME_SZ, INST_SZ); + ANAME_SZ - 1, INST_SZ - 1, sizeof(exp_date) - 1, + sizeof(mod_date) - 1, ANAME_SZ - 1, INST_SZ - 1); if (format == NULL) err(1, "malloc"); -- cgit v1.2.3