diff options
Diffstat (limited to 'coreutils/id.c')
-rw-r--r-- | coreutils/id.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/id.c b/coreutils/id.c index 602b26e..db8afc5 100644 --- a/coreutils/id.c +++ b/coreutils/id.c @@ -40,7 +40,7 @@ extern int id_main(int argc, char **argv) { - char user[9], group[9]; + char user[32], group[32]; long pwnam, grnam; int uid, gid; int flags; @@ -64,12 +64,12 @@ extern int id_main(int argc, char **argv) uid = geteuid(); gid = getegid(); } - my_getpwuid(user, uid); + my_getpwuid(user, uid, sizeof(user)); } else { safe_strncpy(user, argv[optind], sizeof(user)); gid = my_getpwnamegid(user); } - my_getgrgid(group, gid); + my_getgrgid(group, gid, sizeof(group)); pwnam=my_getpwnam(user); grnam=my_getgrnam(group); |