summaryrefslogtreecommitdiffstats
path: root/crypto/kerberosIV/appl/kauth/marshall.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/kerberosIV/appl/kauth/marshall.c')
-rw-r--r--crypto/kerberosIV/appl/kauth/marshall.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/crypto/kerberosIV/appl/kauth/marshall.c b/crypto/kerberosIV/appl/kauth/marshall.c
index dc28ae5..e37b8c9 100644
--- a/crypto/kerberosIV/appl/kauth/marshall.c
+++ b/crypto/kerberosIV/appl/kauth/marshall.c
@@ -14,12 +14,7 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the Kungliga Tekniska
- * Högskolan and its contributors.
- *
- * 4. Neither the name of the Institute nor the names of its contributors
+ * 3. Neither the name of the Institute nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -38,7 +33,7 @@
#include "kauth.h"
-RCSID("$Id: marshall.c,v 1.8 1998/06/09 19:24:26 joda Exp $");
+RCSID("$Id: marshall.c,v 1.10 1999/12/02 16:58:31 joda Exp $");
int
pack_args (char *buf,
@@ -104,28 +99,28 @@ unpack_args (const char *buf, krb_principal *pr, int *lifetime,
len = strlen(buf);
if (len >= SNAME_SZ)
return -1;
- strcpy_truncate (pr->name, buf, ANAME_SZ);
+ strlcpy (pr->name, buf, ANAME_SZ);
buf += len + 1;
len = strlen (buf);
if (len >= INST_SZ)
return -1;
- strcpy_truncate (pr->instance, buf, INST_SZ);
+ strlcpy (pr->instance, buf, INST_SZ);
buf += len + 1;
len = strlen (buf);
if (len >= REALM_SZ)
return -1;
- strcpy_truncate (pr->realm, buf, REALM_SZ);
+ strlcpy (pr->realm, buf, REALM_SZ);
buf += len + 1;
*lifetime = (unsigned char)*buf++;
len = strlen(buf);
if (len >= SNAME_SZ)
return -1;
- strcpy_truncate (locuser, buf, SNAME_SZ);
+ strlcpy (locuser, buf, SNAME_SZ);
buf += len + 1;
len = strlen(buf);
if (len >= MaxPathLen)
return -1;
- strcpy_truncate (tktfile, buf, MaxPathLen);
+ strlcpy (tktfile, buf, MaxPathLen);
buf += len + 1;
return 0;
}
OpenPOWER on IntegriCloud