From: John Kohl Date: Thu, 25 Oct 1990 13:53:01 +0000 (+0000) Subject: had an extra count to the length of the principal names X-Git-Tag: krb5-1.0-alpha2~84 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=36abbae73b5500c9d98c98857e5c462e910ccc2b;p=krb5.git had an extra count to the length of the principal names git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1327 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/admin/create/kdb5_create.c b/src/admin/create/kdb5_create.c index 46cdff6cd..47d487f21 100644 --- a/src/admin/create/kdb5_create.c +++ b/src/admin/create/kdb5_create.c @@ -84,10 +84,10 @@ krb5_encrypt_block master_encblock; krb5_data tgt_princ_entries[] = { {0, 0}, - {sizeof(TGTNAME), TGTNAME} }; + {sizeof(TGTNAME)-1, TGTNAME} }; krb5_data db_creator_entries[] = { - {sizeof("db_creation"), "db_creation"} }; + {sizeof("db_creation")-1, "db_creation"} }; /* XXX knows about contents of krb5_principal, and that tgt names are of form TGT/REALM@REALM */