From: John Kohl Date: Fri, 27 Apr 1990 17:14:59 +0000 (+0000) Subject: don't include null in length count X-Git-Tag: krb5-1.0-alpha2~772 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=95214860e4257eb13bda156852691d10a8f53287;p=krb5.git don't include null in length count git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@624 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/parse.c b/src/lib/krb5/krb/parse.c index 3c93a154b..5bc127a54 100644 --- a/src/lib/krb5/krb/parse.c +++ b/src/lib/krb5/krb/parse.c @@ -99,7 +99,7 @@ krb5_principal *principal; return(ENOMEM); } } - retprinc[0]->length = strlen(realmname)+1; + retprinc[0]->length = strlen(realmname); retprinc[0]->data = realmname; /* cp points to the beginning of the current component,