From 58313eb6820d3b6482f90bdb460f6a350719d6e3 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 24 Nov 2008 21:06:55 +0000 Subject: [PATCH] fix tiny overrun git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21183 dc483132-0cff-0310-8789-dd5450dbe970 --- src/slave/kproplog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slave/kproplog.c b/src/slave/kproplog.c index f23a8e050..5326e2940 100644 --- a/src/slave/kproplog.c +++ b/src/slave/kproplog.c @@ -161,7 +161,7 @@ print_update(kdb_hlog_t *ulog, uint32_t entry, bool_t verbose) exit(1); } (void) strncpy(dbprinc, upd.kdb_princ_name.utf8str_t_val, - (upd.kdb_princ_name.utf8str_t_len + 1)); + upd.kdb_princ_name.utf8str_t_len); dbprinc[upd.kdb_princ_name.utf8str_t_len] = 0; (void) printf(_("\tUpdate principal : %s\n"), dbprinc); -- 2.26.2