mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 22:05:46 +00:00
fixed probs caused by making nslots and naliases a size_t
This commit is contained in:
@@ -94,7 +94,7 @@ extern int path_matches __P((char *, char *));
|
|||||||
extern int addr_matches __P((char *));
|
extern int addr_matches __P((char *));
|
||||||
static int find_alias __P((char *, int));
|
static int find_alias __P((char *, int));
|
||||||
static int add_alias __P((char *, int));
|
static int add_alias __P((char *, int));
|
||||||
static int more_aliases __P((int));
|
static int more_aliases __P((size_t));
|
||||||
|
|
||||||
int yyerror(s)
|
int yyerror(s)
|
||||||
char *s;
|
char *s;
|
||||||
@@ -394,9 +394,9 @@ size_t nslots;
|
|||||||
int
|
int
|
||||||
dumpaliases()
|
dumpaliases()
|
||||||
{
|
{
|
||||||
size_t n = naliases;
|
size_t n;
|
||||||
|
|
||||||
while (n--)
|
for (n = 0; n < naliases; n++)
|
||||||
printf("%s\t%s\n", aliases[n].type == HOST ? "HOST" : "CMND",
|
printf("%s\t%s\n", aliases[n].type == HOST ? "HOST" : "CMND",
|
||||||
aliases[n].name);
|
aliases[n].name);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user