From 57c22f0d8e735c03521bb925065b957b77bf5a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 24 Apr 2005 20:23:00 +0000 Subject: [PATCH] use strlcpy git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14936 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/rsh/rsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/rsh/rsh.c b/appl/rsh/rsh.c index af1a00889..74a140f57 100644 --- a/appl/rsh/rsh.c +++ b/appl/rsh/rsh.c @@ -990,7 +990,7 @@ main(int argc, char **argv) errx (1, "Only one of -u and -U allowed."); if (do_unique_tkfile) - strcpy(tkfile,"-u "); + strlcpy(tkfile,"-u ", sizeof(tkfile)); else if (unique_tkfile != NULL) { if (strchr(unique_tkfile,' ') != NULL) { warnx("Space is not allowed in tkfilename");