diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1998-05-15 01:03:21 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1998-05-15 01:03:21 +0000 |
commit | 1155db4c67c96bea5052646561df07702be0eaf2 (patch) | |
tree | 41d4ce65ce35c828b1f44ebb3ba7eeefe5b705fa | |
parent | f670f62ca6037f20bbfe4f643aa3d60744a36962 (diff) |
be more gentle with buffers
-rw-r--r-- | kerberosIV/kdb_util/kdb_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
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"); |