LibC: Fix getpwend gid field :)
This commit is contained in:
parent
f0e54cdd51
commit
9d97964998
|
@ -88,7 +88,7 @@ struct passwd* getpwent(void)
|
||||||
ASSERT(1 <= field_len && field_len <= 9);
|
ASSERT(1 <= field_len && field_len <= 9);
|
||||||
for (size_t j = 0; j < field_len; j++)
|
for (size_t j = 0; j < field_len; j++)
|
||||||
ASSERT(isdigit(ptr[j]));
|
ASSERT(isdigit(ptr[j]));
|
||||||
s_pwent_struct.pw_uid = atoi(ptr);
|
s_pwent_struct.pw_gid = atoi(ptr);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue