From: Todd C. Miller Date: Mon, 10 Oct 2011 16:43:45 +0000 (-0400) Subject: Instead of trying to grow the buffer in make_grlist_item(), simply X-Git-Tag: SUDO_1_8_3~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b5b17da83a042e0a38fa1c410c9f695501f169a;p=sudo Instead of trying to grow the buffer in make_grlist_item(), simply increase the total length, free the old buffer and allocate a new one. This is less error prone and saves us from having to adjust all the pointers in the buffer. This code path is only taken when there are groups longer than the length of the user field in struct utmp or utmpx, which should be quite rare. --HG-- branch : 1.8 --- 4b5b17da83a042e0a38fa1c410c9f695501f169a