From 3bc0fe48f7d44343e7f556c95bfd98d125330c2b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 18 Apr 2002 06:02:19 +0000 Subject: use strlcpy --- sbin/pfctl/parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') 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); } -- cgit v1.2.3