artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a0a67b
)
buf oflow
author
deraadt
<deraadt@openbsd.org>
Sat, 7 Dec 1996 07:07:35 +0000
(07:07 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 7 Dec 1996 07:07:35 +0000
(07:07 +0000)
kerberosIV/krb/kuserok.c
patch
|
blob
|
history
diff --git
a/kerberosIV/krb/kuserok.c
b/kerberosIV/krb/kuserok.c
index
fd888fc
..
74e8878
100644
(file)
--- a/
kerberosIV/krb/kuserok.c
+++ b/
kerberosIV/krb/kuserok.c
@@
-122,8
+122,7
@@
kuserok(kdata, luser)
if ((pwd = getpwnam(luser)) == NULL) {
return(NOTOK);
}
- (void) strcpy(pbuf, pwd->pw_dir);
- (void) strcat(pbuf, "/.klogin");
+ snprintf(pbuf, sizeof pbuf, "%s/.klogin", pwd->pw_dir);
if (access(pbuf, F_OK)) { /* not accessible */
/*