summaryrefslogtreecommitdiff
path: root/kerberosIV
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-07 20:39:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-07 20:39:30 +0000
commit0c2b752abd56437d368e86a651082c20c56cf5cf (patch)
tree25f1b82dda49ca5f769862d1d46fa5c0e40c3fb5 /kerberosIV
parent8e66ea946871b2f289f233e4d0dd64fc7a7529a6 (diff)
bounds were sizeof(pointer) rather than size of the object; found with
anil's gcc bounds checker mod
Diffstat (limited to 'kerberosIV')
-rw-r--r--kerberosIV/src/lib/krb/kntoln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerberosIV/src/lib/krb/kntoln.c b/kerberosIV/src/lib/krb/kntoln.c
index 8843204abb0..e425560ed58 100644
--- a/kerberosIV/src/lib/krb/kntoln.c
+++ b/kerberosIV/src/lib/krb/kntoln.c
@@ -61,7 +61,7 @@ krb_kntoln(AUTH_DAT *ad, char *lname)
return(KFAILURE);
if (strcmp(ad->prealm, lrealm))
return(KFAILURE);
- strlcpy(lname, ad->pname, sizeof lname);
+ strlcpy(lname, ad->pname, ANAME_SZ);
return(KSUCCESS);
}