readstdin: allocate amount of items
commitba1a347dcaba055f824161007dfee60db3ea785b
authorHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 31 Oct 2022 10:52:30 +0000 (31 11:52 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 31 Oct 2022 10:52:30 +0000 (31 11:52 +0100)
tree3ef02a35db9f468c5c3960ab05f7d9b02d12b484
parentbcbc1ef5c4cf4875a4d66e7dc0919da88a6096a5
readstdin: allocate amount of items

Keep track of the amount of items (not a total buffer size), allocate an array of
new items. For now change BUFSIZ bytes to 256 * sizeof(struct item)).
dmenu.c