From 95214860e4257eb13bda156852691d10a8f53287 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 27 Apr 1990 17:14:59 +0000 Subject: [PATCH] don't include null in length count git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@624 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.26.2