summaryrefslogtreecommitdiff
path: root/kerberosIV/krb/unparse_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'kerberosIV/krb/unparse_name.c')
-rw-r--r--kerberosIV/krb/unparse_name.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kerberosIV/krb/unparse_name.c b/kerberosIV/krb/unparse_name.c
index 2b74e030156..78f3675a775 100644
--- a/kerberosIV/krb/unparse_name.c
+++ b/kerberosIV/krb/unparse_name.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unparse_name.c,v 1.2 1997/12/09 07:57:41 art Exp $ */
+/* $OpenBSD: unparse_name.c,v 1.3 1997/12/09 09:07:09 art Exp $ */
/* $KTH: unparse_name.c,v 1.7 1997/04/01 08:18:46 joda Exp $ */
/*
@@ -60,12 +60,12 @@ krb_unparse_name_r(krb_principal *pr, char *fullname)
{
quote_string("'@\\", pr->name, fullname);
if(pr->instance[0]){
- strncat(fullname, ".", MAXPATHLEN);
+ strncat(fullname, ".", MAXPATHLEN - strlen(fullname));
fullname[MAXPATHLEN-1] = '\0';
quote_string("@\\", pr->instance, fullname + strlen(fullname));
}
if(pr->realm[0]){
- strncat(fullname, "@", MAXPATHLEN);
+ strncat(fullname, "@", MAXPATHLEN - strlen(fullname));
fullname[MAXPATHLEN-1] = '\0';
quote_string("\\", pr->realm, fullname + strlen(fullname));
}