summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-06-02 04:50:02 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-06-02 04:50:02 +0000
commit21462a8417b5c71ec3eb7b332b3c0be33e9be5d1 (patch)
tree405af6682e0bb66957e26ce1989ed8858321e920
parent455959b2e6c01c8b6de9a4196a4ec062218508de (diff)
Protect against the user overrunning and internal buffer
-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" */
/*