use strlcpy, from openbsd

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12041 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-04-16 15:40:24 +00:00
parent d755f75c9e
commit 9132cd6d89

View File

@@ -260,10 +260,10 @@ proto (int sock, const char *service)
(char *)(remotename.data),ccname); (char *)(remotename.data),ccname);
out: out:
if (status) { if (status) {
strcpy(ret_string, "no"); strlcpy(ret_string, "no", sizeof(ret_string));
krb5_warnx(context, "failed"); krb5_warnx(context, "failed");
} else { } else {
strcpy(ret_string, "ok"); strlcpy(ret_string, "ok", sizeof(ret_string));
} }
krb5_data_free (&tk_file); krb5_data_free (&tk_file);