diff --git a/parse.lex b/parse.lex index ee38470ff..ebc4c5d3b 100644 --- a/parse.lex +++ b/parse.lex @@ -43,6 +43,12 @@ static char rcsid[] = "$Id$"; #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ +#ifdef HAVE_STRING_H +#include +#endif /* HAVE_STRING_H */ +#ifdef HAVE_STRINGS_H +#include +#endif /* HAVE_STRINGS_H */ #include #include #include @@ -70,5 +76,5 @@ int sudolineno = 0; (\/[a-zA-Z0-9_.+-]+)+\/? { fill(); return IDENT3;} /* absolute command path */ %% fill() { -strcpy(yylval.char_val, yytext); +(void) strcpy(yylval.char_val, yytext); }