aboutsummaryrefslogtreecommitdiffstats
path: root/src/msec_find
diff options
context:
space:
mode:
Diffstat (limited to 'src/msec_find')
-rw-r--r--src/msec_find/find.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msec_find/find.c b/src/msec_find/find.c
index c60de21..6b20fb0 100644
--- a/src/msec_find/find.c
+++ b/src/msec_find/find.c
@@ -120,7 +120,7 @@ static int traverse(const char *file, const struct stat *sb, int flag, struct FT
/*
* Unowned group check.
*/
- g_nss_data = getgrgid(sb->st_uid);
+ g_nss_data = getgrgid(sb->st_gid);
if (g_nss_data == NULL)
fprintf(unowned_group_fd, "%s\n", file);
break;
@@ -191,7 +191,7 @@ int main(int argc, char **argv)
*/
ctrl = 1;
- directory = ( char * ) malloc((strlen(argv[i]) + 1));
+ directory = ( char * ) malloc((strlen(argv[i]) + 2));
if ( ! directory ) {
perror("malloc");
exit(1);