diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-18 06:02:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-18 06:02:19 +0000 |
commit | 3bc0fe48f7d44343e7f556c95bfd98d125330c2b (patch) | |
tree | 9e9cd72980ebce382f6517fe555b0c313e0a2201 /sbin/pfctl | |
parent | 4819fefe611b15e0ecac987339f06cef8c9b4cc4 (diff) |
use strlcpy
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 3d871e0d052..0e2387fc187 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.58 2002/04/17 19:06:18 dhartmei Exp $ */ +/* $OpenBSD: parse.y,v 1.59 2002/04/18 06:02:18 deraadt Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -272,7 +272,7 @@ pfrule : action dir log quick interface route af proto fromto flags icmpspec ke "%d chars)", PF_RULE_LABEL_SIZE-1); YYERROR; } - strcpy(r.label, $16); + strlcpy(r.label, $16, sizeof(r.label)); free($16); } |