use strlcpy

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14936 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-04-24 20:23:00 +00:00
parent 1a0bf9981f
commit 57c22f0d8e

View File

@@ -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");