diff options
-rw-r--r-- | libpwdgrp/pwd_grp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c index 539d2b01f..f3fcec859 100644 --- a/libpwdgrp/pwd_grp.c +++ b/libpwdgrp/pwd_grp.c | |||
@@ -45,11 +45,10 @@ struct passdb { | |||
45 | uint8_t numfields; | 45 | uint8_t numfields; |
46 | FILE *fp; | 46 | FILE *fp; |
47 | char *malloced; | 47 | char *malloced; |
48 | char struct_result[0 | 48 | char struct_result[ |
49 | | sizeof(struct passwd) | 49 | /* Should be max(sizeof passwd,group,spwd), but this will do: */ |
50 | | sizeof(struct group) | 50 | IF_NOT_USE_BB_SHADOW(sizeof(struct passwd)) |
51 | IF_USE_BB_SHADOW( | sizeof(struct spwd) ) | 51 | IF_USE_BB_SHADOW(sizeof(struct spwd)) |
52 | /* bitwise OR above is poor man's max(a,b,c) */ | ||
53 | ]; | 52 | ]; |
54 | }; | 53 | }; |
55 | 54 | ||