projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07bca9
)
Fix a braino in r22782: we don't use strcpy even safely; use strlcpy
author
Greg Hudson
<ghudson@mit.edu>
Tue, 22 Sep 2009 16:46:06 +0000
(16:46 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Tue, 22 Sep 2009 16:46:06 +0000
(16:46 +0000)
instead.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22783
dc483132
-0cff-0310-8789-
dd5450dbe970
src/kadmin/cli/kadmin.c
patch
|
blob
|
history
diff --git
a/src/kadmin/cli/kadmin.c
b/src/kadmin/cli/kadmin.c
index d4bb2bfdefce59a16f415f8db73dd6f9d1600223..6f8c04b8e0a2406058b9bf09bd843175bded5f3a 100644
(file)
--- a/
src/kadmin/cli/kadmin.c
+++ b/
src/kadmin/cli/kadmin.c
@@
-1174,7
+1174,7
@@
prepare_dummy_password(char *buf, size_t sz)
size_t i;
/* Must try to pass any password policy in place, and be valid UTF-8. */
- str
cpy(buf, "6F a["
);
+ str
lcpy(buf, "6F a[", sz
);
for (i = strlen(buf); i < sz - 1; i++)
buf[i] = 'a' + (i % 26);
buf[sz - 1] = '\0';