mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 06:45:10 +00:00
added a cast
This commit is contained in:
2
parse.c
2
parse.c
@@ -178,7 +178,7 @@ char *cmnd, *path;
|
|||||||
|
|
||||||
while ((dent = readdir(dirp)) != NULL) {
|
while ((dent = readdir(dirp)) != NULL) {
|
||||||
strcpy(buf, path);
|
strcpy(buf, path);
|
||||||
strcat(buf, NAMLEN(dent));
|
strcat(buf, (char *) NAMLEN(dent));
|
||||||
if (stat(buf, &pst) < 0)
|
if (stat(buf, &pst) < 0)
|
||||||
continue;
|
continue;
|
||||||
if (cst.st_dev == pst.st_dev && cst.st_ino == pst.st_ino)
|
if (cst.st_dev == pst.st_dev && cst.st_ino == pst.st_ino)
|
||||||
|
Reference in New Issue
Block a user