summaryrefslogtreecommitdiff
path: root/kerberosIV/krb
diff options
context:
space:
mode:
Diffstat (limited to 'kerberosIV/krb')
-rw-r--r--kerberosIV/krb/rd_req.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerberosIV/krb/rd_req.c b/kerberosIV/krb/rd_req.c
index b1875f34198..61a5f9dcc90 100644
--- a/kerberosIV/krb/rd_req.c
+++ b/kerberosIV/krb/rd_req.c
@@ -201,7 +201,7 @@ krb_rd_req(authent, service, instance, from_addr, ad, fn)
mutual = 0;
#endif /* lint */
s_kvno = *ptr++; /* get server key version */
- (void) strcpy(realm,ptr); /* And the realm of the issuing KDC */
+ (void) strncpy(realm,ptr, REALM_SZ); /* And the realm of the issuing KDC */
ptr += strlen(ptr) + 1; /* skip the realm "hint" */
/*