chiark / gitweb /
login: fix pos-array allocation
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 25 Feb 2014 11:20:25 +0000 (12:20 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 25 Feb 2014 11:22:31 +0000 (12:22 +0100)
commita1937e679f76758635d295287398abe526de2522
treecd603e955ffdb264bfe5b2b08dd4b18240ff1038
parent23fae27185ddde98706faac0f45d77b11ecd66e6
login: fix pos-array allocation

GREEDY_REALLOC takes a pointer to the real size, not the array-width as
argument. Therefore, our array is currently way to small to keep the seat
positions.

Introduce GREEDY_REALLOC0_T() as typed version of GREEDY_REALLOC and store
the array-width instead of array-size.
src/login/logind-seat.c
src/shared/util.h