221fb97e5d
from maintainer William Yodlowsky <bsd at openbsd.rutgers.edu>
40 lines
1.7 KiB
Plaintext
40 lines
1.7 KiB
Plaintext
$OpenBSD: patch-src_cflex_l_in,v 1.2 2004/08/08 14:02:11 sturm Exp $
|
|
--- src/cflex.l.in.orig Mon Jun 7 14:44:12 2004
|
|
+++ src/cflex.l.in Mon Aug 2 13:30:33 2004
|
|
@@ -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;
|