From 9132cd6d8953a0f461b4e24d3f1392c4bd629634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 16 Apr 2003 15:40:24 +0000 Subject: [PATCH] use strlcpy, from openbsd git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12041 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/kf/kfd.c | 4 ++-- 1 file 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);