summaryrefslogtreecommitdiff
path: root/usr.sbin/amd/fsinfo
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2003-04-05 21:36:32 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2003-04-05 21:36:32 +0000
commit8028ebca95530ef0b179a1d9b6b25aff46dffc7a (patch)
treedcd4c06073cb9b116d8dc72edeb05d530e3badc6 /usr.sbin/amd/fsinfo
parentcf9b25fc633abbc13368f3ea6e7f6359c4f5af22 (diff)
one more trivial strlcpy that i forgot; ok deraadt
Diffstat (limited to 'usr.sbin/amd/fsinfo')
-rw-r--r--usr.sbin/amd/fsinfo/fsi_lex.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/amd/fsinfo/fsi_lex.l b/usr.sbin/amd/fsinfo/fsi_lex.l
index 509d3d209ae..fed7e6e35f4 100644
--- a/usr.sbin/amd/fsinfo/fsi_lex.l
+++ b/usr.sbin/amd/fsinfo/fsi_lex.l
@@ -37,7 +37,7 @@
* SUCH DAMAGE.
*
* from: @(#)fsi_lex.l 8.2 (Berkeley) 2/17/94
- * $Id: fsi_lex.l,v 1.3 2003/04/05 19:19:44 pvalchev Exp $
+ * $Id: fsi_lex.l,v 1.4 2003/04/05 21:36:31 pvalchev Exp $
*/
/*
@@ -239,7 +239,7 @@ int yywrap()
static int first = 1;
if (first) {
char prog[16*1024];
- strcpy(prog, "for file in ");
+ strlcpy(prog, "for file in ", sizeof(prog));
while (*++g_argv) {
if (access(*g_argv, 4) < 0) {
error("\"%s\": Cannot open for reading", *g_argv);