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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user