libpwdgrp: use a better estimate of max struct size
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 3 Jan 2015 16:53:49 +0000 (17:53 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 3 Jan 2015 16:53:49 +0000 (17:53 +0100)
commit5e62a3d016633d4d97906f0f73298dc8e8b6a42b
treeb0cdea416496237b3a15ea6f123371aff6168ecc
parent9dca6acaac3a49f1ff8ba9d3ca78853da6f59ae1
libpwdgrp: use a better estimate of max struct size

Previous code's trick with bitwise OR was giving this on 32-bit x86:

sizeof(struct passwd):28
sizeof(struct group):16
sizeof(struct spwd):36
sizeof(struct_result):60

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libpwdgrp/pwd_grp.c