From: Ken Raeburn Date: Mon, 24 Nov 2008 21:06:55 +0000 (+0000) Subject: fix tiny overrun X-Git-Tag: krb5-1.7-alpha1~195 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=58313eb6820d3b6482f90bdb460f6a350719d6e3;p=krb5.git fix tiny overrun git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21183 dc483132-0cff-0310-8789-dd5450dbe970 --- 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);