diff options
author | Love Hörnquist Åstrand <lha@kth.se> | 2003-04-16 15:40:24 +0000 |
---|---|---|
committer | Love Hörnquist Åstrand <lha@kth.se> | 2003-04-16 15:40:24 +0000 |
commit | 9132cd6d8953a0f461b4e24d3f1392c4bd629634 (patch) | |
tree | 1a305a8ca6c51286865edf1ab97542900996f650 /appl/kf | |
parent | d755f75c9e503997072ae0933dc346504c653b4b (diff) |
use strlcpy, from openbsd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12041 ec53bebd-3082-4978-b11e-865c3cabbd6b
Diffstat (limited to 'appl/kf')
-rw-r--r-- | appl/kf/kfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/appl/kf/kfd.c b/appl/kf/kfd.c index 1adf7a6ee..89fd5c580 100644 --- a/appl/kf/kfd.c +++ b/appl/kf/kfd.c @@ -260,10 +260,10 @@ proto (int sock, const char *service) (char *)(remotename.data),ccname); out: if (status) { - strcpy(ret_string, "no"); + strlcpy(ret_string, "no", sizeof(ret_string)); krb5_warnx(context, "failed"); } else { - strcpy(ret_string, "ok"); + strlcpy(ret_string, "ok", sizeof(ret_string)); } krb5_data_free (&tk_file); |