don't include null in length count
authorJohn Kohl <jtkohl@mit.edu>
Fri, 27 Apr 1990 17:14:59 +0000 (17:14 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 27 Apr 1990 17:14:59 +0000 (17:14 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@624 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/parse.c

index 3c93a154b4b47a40769d8df04777664c85d065d7..5bc127a544501b8aa6b09640adf58cbeada23364 100644 (file)
@@ -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,