mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
added inclusion of string.h/strings.h
This commit is contained in:
parent
fa4273a937
commit
000b5d2359
@ -43,6 +43,12 @@ static char rcsid[] = "$Id$";
|
|||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif /* HAVE_UNISTD_H */
|
#endif /* HAVE_UNISTD_H */
|
||||||
|
#ifdef HAVE_STRING_H
|
||||||
|
#include <string.h>
|
||||||
|
#endif /* HAVE_STRING_H */
|
||||||
|
#ifdef HAVE_STRINGS_H
|
||||||
|
#include <strings.h>
|
||||||
|
#endif /* HAVE_STRINGS_H */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
@ -70,5 +76,5 @@ int sudolineno = 0;
|
|||||||
(\/[a-zA-Z0-9_.+-]+)+\/? { fill(); return IDENT3;} /* absolute command path */
|
(\/[a-zA-Z0-9_.+-]+)+\/? { fill(); return IDENT3;} /* absolute command path */
|
||||||
%%
|
%%
|
||||||
fill() {
|
fill() {
|
||||||
strcpy(yylval.char_val, yytext);
|
(void) strcpy(yylval.char_val, yytext);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user