summaryrefslogtreecommitdiffstats
path: root/src/kadmin/cli/kadmin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kadmin/cli/kadmin.c')
-rw-r--r--src/kadmin/cli/kadmin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kadmin/cli/kadmin.c b/src/kadmin/cli/kadmin.c
index d4bb2bfdef..6f8c04b8e0 100644
--- 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. */
- strcpy(buf, "6F a[");
+ strlcpy(buf, "6F a[", sz);
for (i = strlen(buf); i < sz - 1; i++)
buf[i] = 'a' + (i % 26);
buf[sz - 1] = '\0';