Skip to content

Commit

Permalink
Fix use of extend_alloca in NIS
Browse files Browse the repository at this point in the history
(cherry picked from commit caa78cf)
  • Loading branch information
Andreas Schwab committed Jun 15, 2010
1 parent d9c46d4 commit cea9bac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2010-06-02 Andreas Schwab <schwab@redhat.com>

* nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.

2010-06-07 Jakub Jelinek <jakub@redhat.com>

* libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
Expand Down
2 changes: 1 addition & 1 deletion nis/nss_nis/nis-initgroups.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ get_uid (const char *user, uid_t *uidp)
if (r != ERANGE)
break;

extend_alloca (buf, buflen, 2 * buflen);
buf = extend_alloca (buf, buflen, 2 * buflen);
}

return 1;
Expand Down

0 comments on commit cea9bac

Please sign in to comment.