diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2003-04-05 21:36:32 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2003-04-05 21:36:32 +0000 |
commit | 8028ebca95530ef0b179a1d9b6b25aff46dffc7a (patch) | |
tree | dcd4c06073cb9b116d8dc72edeb05d530e3badc6 /usr.sbin/amd/fsinfo | |
parent | cf9b25fc633abbc13368f3ea6e7f6359c4f5af22 (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.l | 4 |
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); |