Fix group selection entry for large inputs
commit88644e181db49f3f94e6891166823fd5f46acbcc
authorDan McGee <dan@archlinux.org>
Mon, 25 Jul 2011 15:05:36 +0000 (25 10:05 -0500)
committerDan McGee <dan@archlinux.org>
Mon, 25 Jul 2011 15:07:48 +0000 (25 10:07 -0500)
tree06fc9a0a97cc51db4bd90a831b94a85af15a938d
parent005eab0a080925d0d6f780d751f9019dafbafc64
Fix group selection entry for large inputs

Hardcoding anything always ends up burning you, and the arbitrary length
of 64 here did just that. Add the ability to reallocate the readline
buffer for longer inputs if necessary, and add other error checking as
approprate. This also plugs one small memory leak of the group
processing code selection array.

Addresses FS#24253.

Signed-off-by: Dan McGee <dan@archlinux.org>
src/pacman/sync.c
src/pacman/util.c