Do not allocate memory for a temporary buffer
commit2913ac0f0980ad95480629b770f3bd631f0d60be
authorChristophe CURIS <christophe.curis@free.fr>
Fri, 22 Feb 2019 16:03:49 +0000 (22 17:03 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 22 Feb 2019 16:08:36 +0000 (22 16:08 +0000)
tree5b9f4bec16ce0c9c42188d61bdb9fad0d0cf7382
parentdae63b5e96a35eac8e805f84ea42008c157c0aa4
Do not allocate memory for a temporary buffer

This kind of things participates in memory fragmentation, so it is
generally a bad practice when an on-stack allocation is enough.
Took opportunity to reduce the buffer size, there's no point in
overallocating memory (the new size being still way too much).

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WPrefs.app/Menu.c
src/appicon.c