openbsd-ports/sysutils/cfengine/patches/patch-src_cflex_l
sturm fec479ae4c update to 2.1.16, removing sbin/vicf which seems to have a security
problem but is not used anywhere and will probably be removed from
cfengine

from maintainer William Yodlowsky <bsd at openbsd.rutgers.edu>
2005-10-27 21:47:28 +00:00

40 lines
1.7 KiB
Plaintext

$OpenBSD: patch-src_cflex_l,v 1.1 2005/10/27 21:47:28 sturm Exp $
--- src/cflex.l.orig Sat Oct 1 08:34:22 2005
+++ src/cflex.l Fri Oct 21 16:35:55 2005
@@ -235,7 +235,7 @@ editfiles: {
{lforcearrow} {
Debug1("LFARROW %s\n",yytext);
- strcpy(LINKFROM,CURRENTOBJECT);
+ (void)strlcpy(LINKFROM,CURRENTOBJECT,CF_BUFSIZE);
ACTION_IS_LINKCHILDREN = true;
FORCELINK='y';
return LARROW;
@@ -244,7 +244,7 @@ editfiles: {
{forcearrow} {
Debug1("FARROW %s\n",yytext);
- strcpy(LINKFROM,CURRENTOBJECT);
+ (void)strlcpy(LINKFROM,CURRENTOBJECT,CF_BUFSIZE);
ACTION_IS_LINK = true;
FORCELINK='y';
return ARROW;
@@ -252,7 +252,7 @@ editfiles: {
{arrow} {
Debug1("ARROW %s\n",yytext);
- strcpy(LINKFROM,CURRENTOBJECT);
+ (void)strlcpy(LINKFROM,CURRENTOBJECT,CF_BUFSIZE);
ACTION_IS_LINK = true;
FORCELINK='n';
return ARROW;
@@ -261,7 +261,7 @@ editfiles: {
{larrow} {
Debug1("LARROW %s\n",yytext);
- strcpy(LINKFROM,CURRENTOBJECT);
+ (void)strlcpy(LINKFROM,CURRENTOBJECT,CF_BUFSIZE);
ACTION_IS_LINKCHILDREN = true;
FORCELINK='n';
return LARROW;