Skip to content

Commit

Permalink
Avoid reallocf as it is not portable.
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Dec 30, 2014
1 parent a249c94 commit 12db7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/gr_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ __gr_scan(char *line, struct group *gr)
gr->gr_mem = NULL;
ndx = 0;
do {
gr->gr_mem = reallocf(gr->gr_mem, sizeof(*gr->gr_mem) *
gr->gr_mem = realloc(gr->gr_mem, sizeof(*gr->gr_mem) *
(ndx + 1));
if (gr->gr_mem == NULL)
return (false);
Expand Down

0 comments on commit 12db7c6

Please sign in to comment.