From 0c2b752abd56437d368e86a651082c20c56cf5cf Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 7 May 2003 20:39:30 +0000 Subject: bounds were sizeof(pointer) rather than size of the object; found with anil's gcc bounds checker mod --- kerberosIV/src/lib/krb/kntoln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kerberosIV') 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); } -- cgit v1.2.3